Final answer:
To find the number of classes that make the memberships and walk-ins cost the same, set up the equation 40x = 8y. Solve for y to find the number of classes. Substitute the value of y into the equation to find the total amount.
Step-by-step explanation:
To find the number of classes that make the memberships and walk-ins cost the same, we can set up the following equation:
40x = 8y
Where x is the number of months and y is the number of classes in a month. Since the cost of the memberships is $40 per month, the total cost for x months is $40x. The cost of walk-ins is $8 per class, so the total cost for y classes is $8y.
To find the total cost, we need to multiply the number of months by the number of classes. So we can rewrite the equation as:
40x = 8xy
Dividing both sides of the equation by 8, we get:
5x = xy
Dividing both sides of the equation by x, we get:
5 = y
So, 5 classes make the memberships and walk-ins cost the same. To find the total amount, we can substitute the value of y into the equation:
Total amount = 8y = 8 imes 5 = $40