It is given that x varies directly as y and inversely as the square of z, and that x=10 when y=4 and z=14. If y=16 and z=7, find the value of x.