P varies partly as q and partly as the square of R. When P=6, q=8,

R=4 and when P=10, q=12, R=5
(a) Find the formula connecting P, q
and R
(b) Find the value of P when q=15, R=25