1) Let's begin by writing down the equations we need.
Freshmen
y=264+29x Note that $29 depends on the number of rolls
Sophomore
y= 241+30x
2) Now that we know the equations that describe those expenses, let's apply the Substitution Method
Let's plug into the 1st equation the value of y.