Traditional Culture Encyclopedia - Hotel accommodation - Santai Hotel

Santai Hotel

Let two people be X, three people be Y, a binary linear equation, and the equation 1: x+y=85. Equation 2: x-40=y- 1, which is obtained by substitution. X=62 rooms, y=23 rooms, which means 62 rooms for two people and 23 rooms for three people. I don't know if it's right. I hope the landlord will give me the best answer.