Given the sentence
My father helped me [doing/do] my homework.
I had learned that the preposition "to" can optionally follow the verb "help". However, the solution to my exercise says that the above sentence should correctly be:
My father helped me doing my homework.
Instead of:
My father helped me do my homework.
Could someone please explain to me why is that?