Answer:
He had 12 books
Explanation:
Let x be the number of books he had before last week,
After returning 5 books, remaining books = x - 5,
Again after returning 3 more books, remaining books = x - 5 - 3 = x - 8
After checking out 8 more books,
Final number of books = x - 8 + 8 = x
According to the question,
Final number of books = 12,
⇒ x = 12
Hence, he had 12 books before last week.