We have,
p+q=29......(1)
19+15=2p......(2)
By equation (2) to and we get,
5+945=2p
14p=90
p=9014
p=457
Put the value of P in equation (1) and we get,
p+q=29
457+q=29
q=29−457
q=203−457
q=1587
The ratio of p:q=45:158
Hence, this is the answer.