Sophia purchased a total of 14 magazines for a research project. She went to the first store and bought 4 art magazines and 4 science magazines, which cost $64. Skz went to a different store and bought 2 art magazines and 5 science magazines for $68. What was the price of each magazine?