S buys stock for $10,000. S sells the stock to his brother B for $7,000. B sells the stock to an unrelated person T for $12,000. What is S's gain or loss recognized on the sale to B? What is B's gain or loss recognized on the sale to T? Show all work for credit.