please help me with question 23 only

Answer:
Step-by-step explanation:
a)
50 + 24x = 250
x = 8.333... therefore they could rent room A for 8.333... hours
b)
80 + 18x = 250
x = 9.444... therefore they could rent room B for 9.444... hours
c) They should rent room B because they could rent it for a long amount of time with the same amount of money.