x/25+ 12=x/20 +8
x=400
So this book has 400 pages and should be returned within 28 days from the date of lending.
I hope it helps you.