Alex wrecked his car and received $22,000 from the insurance company to replace it. His basis in the car was $20,000 and he spent $15,000 on a replacement vehicle. What is the amount of the recognized gain?