Let the number of articles purchase = x.
total cost of x articles =Rs 900
Hence cost of 1 article = Rs 900x.
Sale price per article =900x+2
But he sold (x - 5) articles, since 5 are damaged.
Hence the total sales price = (x - 5)(\frac{900}{x + 2}) = (x - 5)(900+2x)x
Profit = Sales price - cost price =(x−5)(900+2x)x−900 = Rs 80 (given)
⇒ (x - 5)(900 + 2x) = x(980)
900x−4500+2x2−10x=980x
2x2−90x−4500=0
x2−45x−2250=0
x2−75x+30x−2250=0
x(x−75)+30(x−75)=0
(x−75)(x+30)=0→x=75 (taking only positive root)
Hence, the number of articles bought are 75.