A quantity p is partly constant and partly varies inversely as a quantity q,given that p=10 when q is 1.5 and p=20 when q=1.25 find the value of p when q =0.5