Ratio of profit of P and Q = 16*2X:24(3Y + 100) = 4X:(9Y + 300) = X:(Y+1700)
4X/(9Y + 300) = X/(Y+1700)
4Y + 6800 = 9Y + 300
5Y = 6500
Y = 1300
Total profit received after 2 years = ₹(7Y/5 - 60) = 7*1300/5 - 60 = ₹1760
Ratio of profit of P and Q = X:3000
Now,
Total profit received by P after 2 years - total profit received by Q after 2 years = ₹160
1760*(3000 - X)/(3000 + X) = 160
(3000 - X)/(3000 + X) = 1/11
33000 - 11X = 3000 + X
12X = 30000
X = 2500
Total profit received by P after 2 years = 1760*2500/(2500 + 3000) = ₹800