Ah... both of them mean "together with" but it is a part of meaning.
'같이'(as a adverb) means 1. together with 나 하고 같이 해요. 친구와 같이 해요,
2. likewise, same, similary 내가 하는 것과 같이 하세요= 내가 하는 것처럼 하세요.
Could you give me the sentence that made you get confused?
It is hard to explain because I am a not a Korean teacher. The sentence's context can help me.