In the song Lose Yourself by Eminem (which is by the way one of my favourite songs of all time), at the end he says:
You can do anything you set your mind to, man.
Why do we need the "to" after "mind"? Note that I have understood the meaning of the sentence, but not the whole construction.
Best Answer
is a well known idiom in English (and has thus become something of a cliche). There is no good reason to deconstruct it, but you can see why the "to" is needed if you say it this way,
but that still leaves the question, "What does 'set their minds' mean?" So another way of saying this would be,
I hope this helps.