x=number of hamburgers sold
y=number of cheeseburgers sold
Set up a system of equations:
x+y=524
y=3x
Solve by plugging in 3x for y in the first equation:
x+3x=524
4x=524
x=524/4
x=131
The number of hamburgers sold is 131 and the number of cheeseburgers sold is 393.