Final answer:
The total number of people who went on holidays is 16.
Step-by-step explanation:
Let's assume the number of people in the first group is x.
Each person in the first group paid rupees 400, so the total expenditure of the first group is 400x.
In the second group, there are 4 more people than the first group, so the number of people in the second group is x+4.
Each person in the second group paid rupees 100 less than the first group, so each person in the second group paid 400-100=300 rupees.
The total expenditure of the second group is 300(x+4).
Given that the total expenditure of both groups is 5400 rupees, we can set up the equation:
400x + 300(x+4) = 5400
Simplifying the equation, we get:
400x + 300x + 1200 = 5400
Combining like terms, we have:
700x + 1200 = 5400
Subtracting 1200 from both sides:
700x = 4200
Dividing both sides by 700:
x = 6
The number of people in the first group is 6, and the number of people in the second group is 6+4=10.
Therefore, the total number of people who went on holidays is 6+10=16.