contestada

Naomi wants to take fitness classes at a nearby gym, but she needs to start by selecting a membership plan. With the first membership plan, Naomi can pay $54 per month, plus $1 for each group class she attends. With the second membership plan, she'd pay $12 per month plus $3 per class.
If Naomi attends a certain number of classes in a month, the two membership plans end up costing the same total amount. How many classes per month does that take? What is that total amount Naomi will pay per month for a membership and that many classes?