Whenever he borrows a book the number is positive while when he returns it the number is negative.
During the days the number of books he gave/returned:
Monday: 5
Wednesday: -3
Friday: 5
We add the values:
[tex]5+(-3)+5=5-3+5=2+5=7[/tex]
Therefore the student has 7 books