How to solve the equations of 5x + 8y + 10z = 120 and X + y + Z = 14

How to solve the equations of 5x + 8y + 10z = 120 and X + y + Z = 14

5x + 8y + 10z = 120. A instead
X + y + Z = 14. B
a-5*b--------------->y=1/3(50-5z)
10*b-a--------->x=1/5(20-2y)=1/5(20-2(1/3(50-5z)))
Substituting in B to solve Z, then substituting in B to solve x, y