Traditional Culture Encyclopedia - Travel guide - When a tour group travels to a place, it has to stay in a hotel, and the head of the tour group allocates accommodation according to the number of hotels. If there are m people in each room, there are

When a tour group travels to a place, it has to stay in a hotel, and the head of the tour group allocates accommodation according to the number of hotels. If there are m people in each room, there are

When a tour group travels to a place, it has to stay in a hotel, and the head of the tour group allocates accommodation according to the number of hotels. If there are m people in each room, there are 14 people who have no room to live in. If there are three people in each room, finally, Let * * * have x people. Room y

my+ 14=x

3(y- 1)+2=x

Simultaneous equations.

The solution is x=m+42/(3-m)

X and m must be integers.

So the solution is x=44 and m=2.