Land donation to a nonprofit

My wife and I sold some land to Habitat for Humanity at a large discount. We paid $20k for the land in 2017, was appraised for $84K this year, and sold it to HFH for $10K. How will we treat this donaton on our 2024 taxes?