A garment factory sewed only shirts and pants. In April, 80% of the garment sewed were shirts and the rest were pants. In May, the factory increased their production by sewing an additional 840 shirts and pants. The number of shirts sewed in May increased by 25% from April. The number of pants sewed in May was thrice as many as the number sewed in April. How many shirts were sewed in May?
Let the original number of garments ==G
0.80G + 0.20G ==shirts and pants they had in April
1.25 * 0.80G ==1G - number of shirts sewn in May
0.20G x 3 ==0.60G - number of pants sewn in May
0.80G + 0.20G + 1G + 0.60G ==840 + G
2.60G - G ==840
1.60G ==840
G==840 / 1.60 ==525 - original number of garments.
[525 x 0.80]==420 shirts sewn in April
420 x 1.25 ==525 shirts sewn in May