solve for x, y, and z: 2x+3y = n*pi/2, 2y +z = k*pi/2, x+y+z = pi