please help me with this Reg question. Very confused.

N bought stock for 20,000 that he sold to his brother R for 22,000. FMV of stock is 19,000. R later sells the stock for 21,000 How much gain or loss does R recognize? Thanks