[tex]\displaystyle\\
\left \{ {{3m=p}~~~~~~~ \atop {5(m-5)=p-5}} \right.\\\\
\left \{ {{3m=p}~~~~ \atop {5m-25=p-5}} \right.\\\\
\left \{ {{3m-p=0}~~~~~ \atop {5m-p=25-5}} \right.\\\\
\left \{ {{3m-p=0}~~|\times(-1) \atop {5m-p=20~~~~~~~~~~~~}} \right.\\\\
\left \{ {{-3m+p=0} \atop {5m-p=20}} \right.\\
\texttt{---------------- Adunam ecuatiile.}\\
~~~~2m~~~\backslash~~=20\\\\
~~~~~m= \frac{20}{2} = \boxed{\bf 10~mere}\\\\
p = 3m = 3\times 10 = \boxed{\bf 30~de~prune}
[/tex]