The difference counts only due to 40% of the profit which was distributed according to their investments.
Let total profit = x.
40% of x is distributed in the ratio,
125000 : 85000 = 25 :17
Share of first partner = 40% of x (\( \Large \frac{25}{25 + 17}\))
= 40% of \( \Large \frac{25x}{42} = \frac{40}{100} \times \frac{17x}{42} = \frac{17x}{105} \)
Now, according to the question
\( \Large \frac{5x}{21} - \frac{17x}{105} = 600 \)
= > \( \Large \frac{x(25 - 17)}{105} = 600 \)
= > x = \( \Large \frac{600 \times 105}{8}=Rs.7875\)