Write an equation to represent the following scenario:

You are going to the movies with some friends. You know that each movie ticket costs $12. Together, your friends by snacks for $15. You spent a total of $75. How many friends went to the movies?