Please follow https://www.uscis.gov/green-card/green-card-eligibility/green-card-through-life-act-245i-adjustment.