Let x be the number of rolls purchased and y the total cost.
The equation that describes the total cost for freshmen is:
The equation that describes the total cost for sophomores is:
Make both equations for y equal and solve for x:
Use the value of x to find y:
It means that the two classes will have each spend $1155 in total by buying 11 rolls.