Investors & landlords

That will report it on Form 8949 and Schedule D.  It was a rental when it was sold, so the sale belongs on Form 4797.