A family of 3 joins a gym. Each person pays ​$25 to join plus ​$20 per month. The family decides to stop going after they have paid ​$675 all together. How could the equation be​ written? How many months did the family go to the​ gym?