Let no. of people be x.
Total expense = ₹ 18,000
Expense per person = ₹ x18000
Given,
If three more people join them, then the share of each reduces by ₹ 3,000.
No, of people now = x + 3
Expense per person = ₹ x+318000
According to question,
⇒x18000−x+318000=3000⇒x(x+3)18000(x+3)−18000x=3000⇒x2+3x18000x+54000−18000x=3000⇒x2+3x54000=3000⇒x2+3x=300054000⇒x2+3x=18⇒x2+3x−18=0⇒x2+6x−3x−18=0⇒x(x+6)−3(x+6)=0⇒(x−3)(x+6)=0⇒x−3=0 or x+6=0⇒x=3 or x=−6.
Since, no. of people cannot be negative.
∴ x = 3.
Hence, original number of people = 3.