Answer:
Harry has 6 books and Hermione has 31 books
Explanation:
Let's say the number of books Harry has is x.
According to the problem, Hermione has 5 less than 6 times Harry's number of books.
So, Hermione has 6x - 5 number of books.
The total number of books they have combined is given as 37.
Therefore, x + 6x - 5 = 37
Simplifying the equation, we get 7x = 42
So x = 6
This means Harry has 6 books, and Hermione has 6(6) - 5 = 31 books.
So Harry has 6 books and Hermione has 31 books.