At a local ball game the hotdogs sold for S2.50 each and the hamburgers sold for S2.75 each. There were 131 total sandwiches sold for a total value of S342. How many of each sandwich was sold?