The correct option is B x=18,y=−14 and z=−38
We have
x−y+z=0........(1)
x+2y−z=0.........(2)
x+y−3z=1..........(3)
Adding equations (1) and (2), we get
2x+y=0............(4)
Multiplying equation (2) by '-3', we get
−3x−6y+3z=0..........(5)
Adding equations (3) and (5), we get
−2x−5y=1.........(6)
Adding equations (4) and (6), we get
−4y=1
⇒y=−14
Putting y=−14 in equation (4), we get
2x−14=0
⇒2x=14
⇒x=18
Putting x=18 and y=−14 in equation (1), we get
18+14+z=0
⇒z=−18−14
⇒z=−38
Thus, we have
x=18,y=−14 and z=−38