(a) If y varies directly as x, and y=24 when x=16, find y when x=12.

(b) In a formula, z varies inversely as P. If Z is 200 when P is 4, find z when P is 10.