A type A sweater is 50 yuan more expensive than a type B sweater. A company buys the same number of sweaters A and B, but it pays 1,000 yuan more for A sweater than for B sweater. How many of each of the two types of sweaters did the company buy?
一件A种毛衣比一件B种毛衣贵50元．某公司购买A，B两种毛衣的件数相同，但购买A种毛衣比购买B种毛衣多付1000元．该公司各买了这两种毛衣多少件？
<gadget id="calculator">1_000 / 50</gadget>
<output>20</output>

<result>20</result>