You can start by making 2 equations to simulate the problem.
![x + y = 126 \\ y = 2x - 24](https://img.qammunity.org/2019/formulas/mathematics/middle-school/elfklqye7pjyxfmcb2w0vmcd8zi0414wys.png)
Then you can subsitute the second into the y of the first equation like so:
![x + (2x - 24) = 126 \\ 3x - 24 = 126](https://img.qammunity.org/2019/formulas/mathematics/middle-school/5zbo72e19pyzdhl6ihmigh9s6vwqalzr97.png)
Then you can add 24 on both sides and get:
![3x = 150](https://img.qammunity.org/2019/formulas/mathematics/middle-school/1ko5719nshfd0bmfbwayjrcd1tejw8nnou.png)
From here you can divide by 3 on both sides and get:
![x = 50](https://img.qammunity.org/2019/formulas/mathematics/college/m9dcfc5esrf3cjztps7yypo3cw6pvnxbxo.png)
After that you want to plug this x into one of the equations. I will do the second since it is simpler.
![y = (2 * 50) - 24 \\ y = 100 - 24 \\ y = 76](https://img.qammunity.org/2019/formulas/mathematics/middle-school/8azcd6inocouxyt1uqz36eqnb0kpozh7fw.png)
Thus, the two numbers are 50 and 76.