Răspuns :
Problema 1 :
a+b+c=120
(a,b,c) d.p (3,5,7) => a=3k , b=5k , c=7k
3k+5k+7k=120 =>15k=120 =>k=120/15 =>k=8
a=3k =>3*8 =>a=24
b=5k =>5*8 =>b=40
c=7k => 7*8 =>c=56
Numerele sunt : 24 , 40 , 56
Problema 2 :
notam cu : Alex - A , Ariana - B , Boris - C
(A+B+C) i.p ( 2,3,5) => A=k/2 , B=k/3 , C=k/5
A+B+C=3100
k/2 + k/3 + k/5 = 3100 => (15k+10k+6k) / 30 = 3100 => 31k=3100*30 =>31k=93000 => k=3000
A=k/2 => A3000/2=1500
B=k/3 =>B=3000/3=1000
C=k/5=C=3000/5=600
Alex are 1500 lei , Ariana are 1000 lei si Boris are 600 lei .