Let #adults ticket sold is x and #students ticket is y
720 total tickets are sold for adults and students so the algebraic equation is
x + y = 720 - - - > 1st equation
Or
y = 720 - x
The price of adult ticket is $5 and student is $2. $2640 is earned from adults and students ticket so the algebraic equation is
5x + 2y = 2640 - - - > 2nd equation
Substitute 1st equation into 2nd equation
5x + 2y = 2640
5x + 2*(720 - x) = 2640
5x + 1440 - 2x = 2640 put all numbers on the right side
5x - 2x = 2640 - 1440
3x = 1200
x = 400 - - - > #adult ticket is 400
x + y = 720
400 + y = 720
y = 720 - 400
y = 320 - - - > #student ticket is 320
Proof
400 * $5 + 320 *$2 = $2640