John bought ten books all at the same price. The total cost of the books was $242. He gave two books to his friend. What was the value of the books that he gave to his friend?