FAR Question - Not-for-Profit Org

I need some help with Not-for-Profit accounting and J/E. Feb 1 - A not-for-profit receives as a donation a painting with a fair market value of $100,000 and a historical cost of $75,000. The not-for-profit org intends to sell this painting in the future. Jun 5 - The painting is impaired for $20,000 Oct 20 - The painting is sold with a $40,000 profit For Feb 1 - the painting is recorded at fair market value in the not-for-profit org's books. What would be the J/E since the asset will be held for sale? June 5 - How should I record this impairment? Oct 20 - Then for what price was the painting sold?