Artificial intelligent assistant

There are 68 rooms in a hotel with either 2 or 3 beds. There are 161 beds in total. How many 2 and 3 bed rooms are there in the hotel? There are 68 rooms in a hotel with either 2 or 3 beds. There are 161 beds in total. How many 2 and 3 bed rooms are there in the hotel? How do I solve expressions like this?

Let $x$ be the number of 2-bed rooms, $y$ the number of 3-bed rooms. 161 beds in total means $2x+3y=161$, and there are 68 rooms so $x+y=68$.

Since you've tagged this as linear algebra, this is the system in matrix-form:

$$\begin{bmatrix}1&1\\\2&3\end{bmatrix}\begin{bmatrix}x\\\y\end{bmatrix}=\begin{bmatrix}68\\\161\end{bmatrix}$$

Row-reduce and you're done.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy f67c8f755acfa59c85d1f7a4c91ff21f