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,
[tex]x+y=1260\ldots\ldots\text{.}.1[/tex]She had 40 fewer marbles than table tennis balls.
The mathematical representation is,
[tex]x=y-40\ldots\ldots\ldots2[/tex]Substitute x = y - 40 from equation 2 into equation 1 to solve for y
[tex]\begin{gathered} y-40+y=1260 \\ y+y=1260+40 \\ 2y=1300 \\ \frac{2y}{2}=\frac{1300}{2} \\ y=650\text{ table tennis balls} \end{gathered}[/tex]Hence, she has 650 marbles.