If p varies partly directly as q and partly inversely as the square of r.When p=1,q=2 and r=3.When p=2, q=1 and r=5.Find q when p=3 and r=4