A fruit seller buys a large quantity of apples for $150\$$ . $200$ of the apples are rotten and he sells each of the remaining apples at $10$ cents more than what he paid and makes a profit of $50\$$. Find the number of apples that he brought originally.
Let $X$ be the number of apples
Let $Y$ be the original selling price of the apples
Remaining apples = $X-200$
First equation -
$ X - 200 = P + 0.10 $
I don't know how to find the second equation . Can I get help? Thanks in advance .