The ratio of the speeds of P, Q and R is 3 : 5 : 7. P, Q and R started from the same point. Q and R started A hours and B hours after P started respectively. If the ratio of the times taken by Q and by R to meet P is 3 : 4, find the ratio of A and B.