capegemini - rajesh bought p number of sports goods for rs9000 if each item was cheaper by rs30 then with the same amount he could have bought 50 more items than p find the number of items bought by rajesh - skillgun

Rajesh have bought P items for Rs.9000.
Then the cost of each item = Rs.9000/P If each item was cheaper by Rs.30, he could have bought 50 more items.
Therefore, with Rs.30 discount, the amount of each item = Rs.9000 / X + 50 ...(2)
he bought 50 more items when cost of each item is less by Rs.30 then we have
9000/P - 9000/P + 50 = 30
1/P - 1/P + 50 = 30/9000
50 / P(P + 50) = 1/300
P(P + 50) = 15000
P2 + 50P = 15000
P2 + 50P - 15000 = 0
(P+150)(P-100) = 0
P = -150 or P = 100
We don't take negitive value P = 100