Purchase of new home and sale of old home in different years

We bought a new home in 2024 but didn't get our old home sold until 2025.  Do we treat the sold home as the sale of a second home?  We owned the old home for 29 years. Also, we are filing as Married Filing Separately.