Gianna and her children went into a movie theater and she bought $77.50 worth of bags of popcorn and pretzels. Each bag of popcorn costs $6.50 and each pretzel costs $4.75. She bought a total of 13 bags of popcorn and pretzels altogether. Determine the number of bags of popcorn and the number of pretzels that Gianna bought.