Total amount invested = Rs 40,000 + Rs 60,000

= Rs 1,00,000

Profit earned = 30%

∴ Total profit = 30% of 1,00,000

= 30/100 × 100000

= Rs 30000

Proportion of investment = 40000 : 60000

= 2:3 …. (Dividing by 20000)

Let Nasruddin’s profit be Rs 2x and Mahesh’s profit be Rs 3x.

∴ 2x + 3x = 30000

∴ 5x = 30000

∴ x = . 30000/5

∴ x = 6000

∴ Nasruddin’s profit = 2x = 2 × 6000 = Rs 12000

Mahesh’s profit = 3x = 3 × 6000 = Rs 18000

∴ The profits of Nasruddin and Mahesh are Rs 12000 and Rs 18000 respectively.