Please follow https://irs.gov/uac/get-prior-year-tax-information-from-the-irs.