I know the rule that adjective phrase, preposition phrase, and infinitive phrase modify a noun from the behind,but sometimes they modify a noun from the front as stated below, using hyphen.
[adjective phrase]
a rule
that is easy to remember (
Just about acceptable without 'that is')
an easy-to-remember rule
OK, but most people would say 'an easily-remembered rule'
[preposition phrase]
the book
that is on the table
(but OK without the 'that is' in many contexts)
the on-the-table book

,
but occasionally used in special cases (like 'over-the-counter medicines' - which you can buy at a chemist/pharmacy without a doctor's prescription) - not as a general rule that you can apply wherever you like
his manner in your face

his in-your-face manner
[infinitive phrase]
a high-level group soon to be appointed
a soon-to-be-appointed high-level group
Please tell me what is the difference between them(a rule easy to remember and an easy-to-remember rule / the book on the table and the on-the-table book /
a high-level group soon to be appointed and a soon-to-be-appointed high-level group).