Investors & landlords

In Step 3, it seems that one could infer it is the total cost basis from 2007 whereas I assume it would be a pro rata cost basis dependent on what fraction of the shares you are selling now. presumably fewer shares if the price of the stock has increased since 2007.  Or am I confused?