Even if you managed to get the engine to fit, the shaker hood scoop is *highly unlikely* to line up properly. The shaker scoop is designed specifically for the Pontiac engine's intake manifold and air cleaner setup. A Chevy 350, even with a similar-looking intake, will likely be a different size and shape, causing interference with the hood and the scoop. You'd likely need custom fabrication to make the shaker work.
In short, while it's *possible* to swap a Chevy 350 into a Pontiac Firebird/Trans Am, it's a major undertaking requiring extensive custom work, including engine mounts, transmission, exhaust, and likely modifications to the hood and shaker system.