Chairs: (3+2)/(5-4)=5 (pieces). The difference between the two sitting methods is 3+2=5 seats, because each chair has (5-4) more people, so 5/(5-4) is the number of chairs.
Number of people: 5×4+3=23 people