Add the first two equations to eliminate y:

Add the third equation, , to this:

Solve for z:

Substitute into the third equation: , or , so

Substitute into the second equation: , so