Answer:
$20,000
Step-by-step explanation:
Calculation for th e realized gain on the exchange
Using this formula 
Realized gain=Fair market value - Adjusted basis 
Let plug in the formula 
Realized gain=$160,000-$140,0000
Realized gain=$20,000
Therefore the realized gain on the exchange was $ 20,000