Notăm numerele cu a și b.
[tex]\it m_a=\dfrac{a+b}{2}=29,4 \Rightarrow a+b=29,4\cdot2=58,8\ \ \ \ \ (1)\\ \\ \\ \dfrac{a}{b}=\dfrac{5}{7} \Rightarrow \dfrac{a}{5}=\dfrac{b}{7}=\dfrac{a+b}{5+7} \stackrel{(1)}{=}\ \dfrac{58.8}{12}=4,9\\ \\ \\ \dfrac{a}{5}=4,9 \Rightarrow a=5\cdot4,9=24,5\\ \\ \\ \dfrac{b}{7}=4,9 \Rightarrow b=7\cdot4,9=34,3[/tex]