When you can use the format of (to+verb+ing)!!
In English, the form of verb+ing is called a (gerund) if it serves as a noun.
For instance: the gerund form of "run" is "running". In the sentence (I like running), "running" serves as a noun. Not all verb+ing forms, however, are gerunds, such as I am running, "running" herein is another verb.
There are a few situations, where you could use the format (to+verb+ing) as follows:
1) The "to" is part of a phrasal verb (i.e. verb+preposition combination, such as "look forward to"). The "to" is part of the verb itself.
Example:
I am looking forward to attending the party.
2) The "to" is part of an adjective+preposition combination.
Example:
A lot of women are not accustomed to being treated so well!
3) The "to" is part of a noun+preposition combination.
Example:
His great dedication to teaching inspires his students.
Note that the format of (to+verb+ing) in "I would like to apply what I learned in school to helping make more money" is wrong since it does not fit into any of the above cases.

