Cheryl, your question is too broad, so people don’t know how to answer it.
“To” and “at” are both prepositions, but they have many different meanings and are used in many different contexts.
If you really want to know all their diffrent meanings, then you can look them up here:
www.oxfordlearnersdictionaries.com/