To solve the exercise you can propose the following system of linear equations:
To solve the system of linear equations you can use the method of reduction or elimination. To do this first multiply Equation 1 by -32 and add both equations, then solve for the variable y:
Finally, replace the value of the variable y into any of the initial equations and solve for the variable x. For example, replace the value of the variable y in Equation 1:
Therefore, 15 double rooms and 8 single rooms were rented.