Răspuns :
x+y=32 => -2x-2y=-64 => 3y=36 => y=12 => x=36-12=24
2x+5y=100 2x+5y=100
2x+5y=100 2x+5y=100
a- camere cu 2 paturi
b- camere cu 5 paturi
a+b=32 /*(-2)
2a+5b=100
-2a-2b=-64
2a+5b=100
------------------------- (+)
3b=-64+100
3b=36
b=36:3
b=12 camere a cate 5 paturi
a+12=32
a=32-12
a=20 camere a cate 2 paturi
Verificare:
2*20+12+5=40+60=100 ADEVARAT
b- camere cu 5 paturi
a+b=32 /*(-2)
2a+5b=100
-2a-2b=-64
2a+5b=100
------------------------- (+)
3b=-64+100
3b=36
b=36:3
b=12 camere a cate 5 paturi
a+12=32
a=32-12
a=20 camere a cate 2 paturi
Verificare:
2*20+12+5=40+60=100 ADEVARAT