(a+b)/2=20 => a+b=40
a/b=3/5 => 5a=3b => a=3b/5 => 3b/5+b=40, 8b/5=40 =.> b=25 => a=15
ответ: 15 и 25