Given that z varies directly as the square of x and inversely as the square root of y. If x = 2, y= 9 when z = 3, find z when x = 3 and y = 4.