I need to get copies of my 2022 and 2023 state and federal tax filings. how do i obtain those

I need to download previous years tax returns so i can print them for use on a loan document please help me access these documents