The teacher will be very surprised to see your correct solution 😉
a x + x*y + y*z - x*z = 0
x*y - x*z + x^a + y*z = 0