around how much would it cost to swap out a engine? on 1997 Toyota Tacoma

i found 1 online with low miles and would like to swap it out with the old 1..

Asked by for the 1997 Toyota Tacoma
depends on what engine it is and if it has ac and 4wheel drive and if it a stndard or automatic