A pottery studio gives two hour and five hour classes for $36 an hour. If the studio has collected $5976 for a total of 47 classes, how many two hour classes and how many five hour classes were paid for?

Let x = 2-hour classes

Let y = 5-hour classes

x + y = 47

72x + 180y = 5976

Multiply the top equation by 72

72x + 72y = 3384

72x + 180y = 5976

Subtract the first equation from the second

108y = 2592

y = 24

x = 23

There were 23 2-hour classes and 24 5-hour classes