Question 1198580
.
Paul bought a number of shares of stock for a total of $3000.
Three months later the stock had increased in value by $5 per share and he sold all 
but 50 shares and regained his original investment of $3000. How many shares did he sell?
~~~~~~~~~~~~~~~~


<pre>
Let n be the number of shares Paul sold.

Then the original number of shares he bought was (n+50).


The buying price per share was  {{{3000/(n+50)}}} dollars.

The selling price per share was {{{3000/n}}} dollars.


The difference of these prices was 5 dollars, according to the problem,
which gives this "price" equation


    {{{3000/n}}} - {{{3000/(n+50)}}} = 5  dollars.     (1)


To solve this equation, multiply both sides by n*(n+50), then simplify step by step


    3000*(n+50) - 3000*n = 5n*(n+50)

    3000n + 150000 - 3000n = 5n^2 + 250n

    5n^2 + 250n - 150000 = 0

     n^2 +  50n -  30000 = 0

     (n+200)*(n-150) = 0


The equation has two roots, -200 and 150.  
Of these two roots, we discard the negative one and accept the positive value n= 150.


<U>CHECK</U>.  To check, substitute n= 150 into equation (1). You will get

        {{{3000/150}}} - {{{3000/200}}} = 20 - 15 = 5,  which is precisely correct.


<U>ANSWER</U>.  Paul sold 150 shares.
</pre>

Solved.