The ratio of the number of red balls to white balls in the bag is 19:13. After putting in several red balls, the ratio of red balls to white balls becomes 5:3; after putting in several white balls, the ratio of red balls to white balls becomes 13:11. It is known that there are 80 fewer red balls than white balls, so how many balls were there in the original bag?
袋子里红球与白球数量之比是19：13．放入若干只红球后，红球与白球数量之比变为5：3；再放入若干只白球后，红球与白球数量之比变为13：11．已知放入的红球比白球少80只，那么原先袋子里共有多少只球？
<gadget id="calculator">55 - 39</gadget>
<output>16</output>

<gadget id="calculator">65 - 57</gadget>
<output>8</output>

<gadget id="calculator">16 - 8</gadget>
<output>8</output>

<gadget id="calculator">80 / 8</gadget>
<output>10</output>

<gadget id="calculator">57 + 39</gadget>
<output>96</output>

<gadget id="calculator">10 * 96</gadget>
<output>960</output>

<result>960</result>