Investors & landlords

You must have mixed  up the amounts on 50 shares of company B.  Sold 5,000 - 4,500 cost is a 500 GAIN.