There are several stools and chairs in the room. Each stool has three legs and each chair has four legs. When they are all sat on, there are 43 legs, including two for each person Leg, how many people are there in the room

There are several stools and chairs in the room. Each stool has three legs and each chair has four legs. When they are all sat on, there are 43 legs, including two for each person Leg, how many people are there in the room


analysis:
Each stool has 3 + 2 = 5 legs
Each chair has 4 + 2 = 6 legs after sitting on it
Suppose there are x benches and Y chairs; X and y are natural numbers
5x+6y=43
6y is even and 43 is odd
Then 5x is odd, and the number of digits is 5
So the number of 6y is 8
The single digit of Y is 3 or 8
When y = 8, 6y = 48 > 43
So y can only be 3
When y = 3, x = (43-18) △ 5 = 5
There are 5 stools and 3 chairs
The total number of people is 5 + 3 = 8
Can it solve your problem?