Z varies directly with X squared and inversely with Y. When X equals two and Y equals four, Z equals three. What is the value of Z when X equals four and Y equals nine

A: 2/3

B: 16/3

C: 8/3

D: 24