Y varies directly as x and inversely as the square of z, and when x = 32, y = 4 and z = 6. Find x when y = 10 and z = 3.