z varies directly as the square of x and inversely as y. When x= 2 and y = 2, z = 10. What is z when x = 3 and y = 3?

A. 3
B. 5
C. 9
D. 15