Pontiac Grand Prix engines (especially from 1994) are significantly larger and likely have different mounting points than engines found in most AMC cars. You'd be facing major challenges in terms of engine bay space, transmission compatibility, mounts, wiring, and cooling systems. A swap like this would require extensive custom fabrication and is a very complex project, even for experienced mechanics.