You dont have to assume anything. Yes I sold it to my friend with whom I had a deal and bought out his position. Whats so confusing about that ? Its a deal between two individuals. Simple!
Friends often have such deals, especially when you enter into a trade that you do not wish to continue further. They take over that position by paying up the cash plus brokerage. Simple!
The profits are all that matters