Answer:
the number of children on the trip=31
The number of adult=9
Explanation:
Let's call the number of adults on the trip "a" and the number of children on the trip "c".
We know that:
a + c = 40 (the total number of people on the trip)
And:
3a + 2c = 89 (the total number of sandwiches given out)
We can use the first equation to solve for one variable in terms of the other:
a = 40 - c
And substitute this into the second equation:
3(40 - c) + 2c = 89
Expanding and simplifying:
120 - 3c + 2c = 89
120 - c = 89
Subtracting 120 from both sides:
-c = -31
So c = 31, the number of children on the trip.
And the number of adults on the trip, a = 40 - c = 40 - 31 = 9.