In your circumstance, for safety and for correct emission compliance reasons, there are two choices; new driveline, employ a Toyota dealership or an independent service center; for an used driveline, employ an independent service center.
Guesses for the engine:
Used, pig in a poke $200+
Used, reliable $800+/-
New long block $6,000 +/-. Not positive the 1NZ-FE is available new.
Labor costs are often commensurate with the parts prices. Call shops to price them.
Guesses for the manual transaxle; add fifteen percent for automatic:
Used, pig in a poke $75+
Used, reliable $250+/-
New $2,900+/-. Not positive the transaxle is available new.
Labor costs frequently are commensurate with the parts prices. Call shops for pricing.
I reiterate, these are only guesses, but they should not be too far off.
Hopefully, someone on this site will offer more accurate prices.
Whatever parts cost will be 1/4 of total cost once labor is added......parts will be cheapest part of project regardless of going with new or used. Then there will be things they miss which hope fully won't be critical ones. More time and coin......good luck!
The 1.8 engine engine from a Corolla has been done. But it did involve notching the frame on both sides. Anything is possible with Time and Money. If you are paying to have it done, it will be expensive.