x= hamburger
y=drink
we want to get the value of one variable to find the value of the other
tyler: 6x+4y=26.50
alexandra: 4x+3y=18.25
subtracting tyler from alex ⇒ 2x+y=8.25
multiply this by 2 ⇒ 2(2x+y=8.25) ⇒ [4x+2y=16.50]
now, subtract alex from this to isolate y ⇒ 4x+3y=18.25
- [4x+2y=16.50]
⇒ y=1.75
now plug in to any of the previous equations and solve for x:
4x+3(1.75)=18.25
4x+5.25=18.25
-5.25 -5.25
4x=13 ⇒ x=3.25
/4 /4
6(3.25)+4(1.75)=26.50
4(3.25)+3(1.75)=18.25
hamburger costs 3.25 and drink costs 1.75
hamburger and drink will cost 5.00