Notăm cele două numere cu a și b.
[tex]\it a-b=7378 \Rightarrow a = 7378+b\ \ \ \ \ (1)\\ \\ a:b=123\ rest\ 58 \Rightarrow a=123b+58\ \ \ \ \ (2)\\ \\ (1),\ (2) \Rightarrow 123b+58=7378+b \Rightarrow 123b-b=7378-58 \Rightarrow \\ \\ \Rightarrow 122b=7320|_{:122} \Rightarrow b=60\ \ \ \ \ \ (3)\\ \\ (1),\ (3) \Rightarrow a=7378+60 \Rightarrow a=7438[/tex]