ive been struggling with this problem for the last couple days, need help. i posted before, but i still cant figure it out.

31x+12y-24z=105

18x+24y+z=77

12x-6y+4z=5

when i do substitution, the problem seems to go on forever, and when i solve for an actual answer i get a differen number every time