REG - S Corp Liquadting Distributions

Hi Everyone, I'm a little unclear on basis/gain/loss for S Corp Liquidations. I made the below question up: ABC is liquidating (X is sole shareholder). X's beginning basis in ABC is 15,000. ABC has the following assets: Land - 10,000 FMV 5,000 Basis Equipment - 7,000 FMV 2,000 Basis Property - 3,000 FMV 8,000 Basis What is X's Gain/Loss and Basis related to each asset after the liquidating distribution? Thanks!