A souvenir shop sells two sizes of American flags. Small flags cost $3.50 and large flags cost $6.50. On a recent day, 155 flags were sold and $683.50 was collected. How many flags of each size were sold that day?