Let the total number of articles be n.
Let the value of one article be a.
Given that trader bought n articles for Rs900.
So that n×a=900 and a=900n
Also given that five of them were damaged, he sold the remaining articles for Rs. 2 extra and he also got a Rs. 80 profit.
So that the equation would be (n−5)×(a+2)=900+80
⇒ na−5a+2n−10=980.
⇒ 900−5×900n+2n=990 [∴ na = 900 and a = 900/n]
⇒ 2n−4500n=90
⇒ n−2250n=45
⇒ n2−2250=45n
⇒ n2−45n−2250=0
⇒ n2−75n+30n−2250=0
⇒ n(n−75)+30(n−75)=0
⇒ (n−75)(n+30)=0
⇒ n=75 or −30
Since n is the number of goods, it is always positive.
Hence, number of articles he bought was 75.