5y+2x=78
5y-5y+2x=78-5y
2x=78-5y
2x/2=78-5y/2
x=39-2.5y
2y + 7x = 56
2y + 7(39-2.5y) = 56
2y + 7(39) (7)(-2.5y) = 56
2y+273-17.5y=56
273-15.5y=56
273-15.5y-273=56-273
-15.5y=-217
-15.5y/-15.5=-217/-15.5
y=14
x=39-2.5y
x=39-2.5*14
x=39-35=4