Fred had 236 dollars to spend on 6 books. After buying them, he had 14 dollars. On average, how much did each book cost?