Daryl wants to buy a science book and a math book. The cost of a science book is $8 more than the cost of a math book. The cost of nine math books is the same as the cost of seven science books. What is the cost of each book?