The first one is "with". We use this to mean together.
For example: I play the game "with" my husband.
The second word is two different words in English "to" and "from". We use these to show a direction.
For example: I go to the beach. (I start in one location and go in the direction of the beach)
Other example: I am from the United States. (this is my origin, or my original location)
Example of time: I have class from 9 p.m. to 10 p.m. (the beginning to the end)
We also use "to" with infinitive verbs. For example: I like to study English.