Multible infinite verbs in Spanish
When in a Spanish sentence, there are more than one infinite verb, how do I link them?
For example: She can try to walk. = Ella puede tratar de caminar. Ella puede intentar caminar.
I want to start eating = Quiero empezar a comer.
So, sometimes "a", sometimes "de", sometimes nothing. How do I know which one?