John paid $34 for two algebra and three geometry books. He paid $36 for three algebra and two geometry books. What is the cost of each book?