The dormitory

The dormitory accommodates 150 pupils in 42 rooms, some of which are triple and some are quadruple. Determine how many rooms are triple and how many quadruples.

Correct answer:

a =  18
b =  24

Step-by-step explanation:


a+b = 42
3a+4b = 150

a+b = 42
3·a+4·b = 150

a+b = 42
3a+4b = 150

Pivot: Row 1 ↔ Row 2
3a+4b = 150
a+b = 42

Row 2 - 1/3 · Row 1 → Row 2
3a+4b = 150
-0.33b = -8


b = -8/-0.33333333 = 24
a = 150-4b/3 = 150-4 · 24/3 = 18

a = 18
b = 24

Our linear equations calculator calculates it.



Did you find an error or inaccuracy? Feel free to write us. Thank you!







Tips for related online calculators
Do you have a system of equations and looking for calculator system of linear equations?

You need to know the following knowledge to solve this word math problem:

Related math problems and questions: