Rachel is waiting for her friends at the movie theater. While she is waiting , she watches two groups buy tickets and popcorn. The first group buys 5 tickets and 2 popcorns and their total is $47.50. The second group buys 4 tickets and 1 popcorn and their total is $35. When Rachel's friends show up, they buy 3 tickets and 2 popcorns . How much did it cost them?