6 people participated in a bowling tournament. Each participant played exactly 3 games with each of the other participants. How many ames were played in all?

I was told the answer was 45. Is this correct? I couldn't figure out how to do the problem. Thank you in advance.