Whenever "me" follows the prepostion "con" the two words combine
to form "conmigo." When "ti" follows the preposition "con" they
combine to form "contigo." Here are a couple of examples:
Por que no vienes conmigo?
Why don't you come with me?
No voy contigo, voy con ellos.
I'm not going with you, I'm going with them.