Lincoln went into a movie theater and bought 2 bags of popcorn and 4 candies, costing a total of $34. Zoey went into the same movie theater and bought 6 bags of popcorn and 5 candies, costing a total of $74. Determine the price of each bag of popcorn and the price of each candy.