The particle と has two functions: 1) to connect two nouns A and B, and 2) to describe with whom you do something, or "together with."

 

1) にほんごとえいごをはなします。   I speak Japanese and English.

 

2) メアリーさんはスーさんとかんこくにいきます。   Mary will go to Korea with Sue.