Define a good team composition and how to form one with random people?

I am starting this out by saying I get matched with people who tend to play their mains and only their mains, how do I exactly counter a bad team set-up? We, for starters, need a tank, AD, AP, and good jungle capability. I got that down, what comes after that?
Report as:
Offensive Spam Harassment Incorrect Board