That's a system of equations with 3 variables. So, if you don't want to solve it using matrices, simply solve for x, y, and z in terms of k and h, like you would solve a normal system of equations. At that point it will be easy to determine which values of h and k give no solution to the system.