Răspuns:
a+b+c=205
2a+3b+4c=627
b:c=1 rest13=>b=c+13
a+c+13+c=205
a+2c=205-13=>a+2c=192=>a=192-2c
2(192-2c)+7c=588
384-4c+7c=588
3c=204=>c=204:3=>c=68 ap. cu patru camere
b=c+13=>b=68+13=>b=81 ap. cu trei camere
a=192-2·68=>a=192-136=>a=56 ap cu doua camere
verificare:
56·2+81·3+68·4=112+243+272=627