Lets suppose he bought X books,
so, X books cost = Rs.80
1 book cost = RS
![80 over X](https://search-static.byjusweb.com/question-images/byjus/_3d9f5103-6069-4fce-9360-37ce9218989620181024-10174-1k101vf.svg)
If he had bought 4 more books then,
(X+4) books cost = Rs. 80
(since it is given that he had bought 4 more books at the same cost as when he bought X number of books)
1 book cost = Rs.
![fraction numerator 80 over denominator X plus 4 end fraction](https://search-static.byjusweb.com/question-images/byjus/_ed281cc3-56bc-403d-9249-2f769b4b148920181024-10174-ufkd7e.svg)
Therefore,
According to the question,
(price per book when he bought X number of books-price per book when he bought X+4 number of books=1)
that is,
(
![80 over X plus fraction numerator 80 over denominator X plus 4 end fraction](https://search-static.byjusweb.com/question-images/byjus/_66b557d3-22ef-4658-96b1-32d40057763e20181024-10174-1tyorpq.svg)
)=1
=> 80(X+4-X)=
![X squared](https://search-static.byjusweb.com/question-images/byjus/_0c2fb830-5751-45ae-9652-192c49ba461420181024-10174-vrqf6q.svg)
+ 4X
=>
![X squared](https://search-static.byjusweb.com/question-images/byjus/_7a951ee6-0180-48e3-a361-8d5bf4a5124a20181024-10174-19fupl3.svg)
+ 4X - 320 =0
=> X(X+20) - 16(X+20)=0
=> (X+20)(X-16)=0
So, X can have two values : (16,-20)
-20 is ignored as number of books cannot be negative.
Thus the answer is 16.
Hope you understand