din I- relatie x:y=3 rest 4 => X= 3Y+4
din relatia II x:Z=2 => 2z=x => Z=X:2
inlocuim in relatia X+Y+Z =358
3Y+4+Y+X/2 =358 (PE Xil inlocuim cu 3Y+4)
4Y+4+(3Y+4)/2=358
(8Y+8+3Y+4)/2 =358
11Y+12=716
11Y= 704 => Y=716/11 => Y=64
X=3Y+4 => X=3*64+4 => X=196
Z=X:2 => Z=196/2 => Z=98
(X+2Y+Z:2)*3+56 = (196+2*64+98:2)*3+56 =
(196+128+48)*3+56=
1119+56 =1175