nuci = n
prune = p
mere =m
t = numarul total de pomi
n = (p/2)/4 = p/8
m = n+45 = (p/8)+45 = (p+360)/8
n + m + p = t
p/8 + (p+360)/8 + p = t
(p+p+360+8p)/8 = t
(10p+360)/8 = t
10(p+36)/8 =t
5(p+36)/4 = t
5p+180 = 4t
5p = 4t-180
p = (4t-180)/5
si t trebuie inlocuit ( nu ai scris numarul total de pomi )
n = p/8 ( inlocuiesti dupa ce ai aflat pe p )
m = (p+360)/8