Let 'x' represent number of marbles
Let 'y' represent number of table tennis balls
Amelia had a total of 1,260 marbles and table tennis balls,
The mathematical representation is,
![x+y=1260\ldots\ldots\text{.}.1](https://img.qammunity.org/2023/formulas/mathematics/college/pmlgr6cu7i4lqq5yr719j84t1zebcfxmrf.png)
She had 40 fewer marbles than table tennis balls.
The mathematical representation is,
![x=y-40\ldots\ldots\ldots2](https://img.qammunity.org/2023/formulas/mathematics/college/dd6opf689vqvswbgphcst2hb41y7qcrwq8.png)
Substitute x = y - 40 from equation 2 into equation 1 to solve for y
![\begin{gathered} y-40+y=1260 \\ y+y=1260+40 \\ 2y=1300 \\ (2y)/(2)=(1300)/(2) \\ y=650\text{ table tennis balls} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/uftbdj9d9bw7j8zssflzyhm2dbiyommw1p.png)
Hence, she has 650 marbles.