Knocking noise after new exhaust gaskets

So what engine is this? Just curious, will 340/360 headers seal against a 318 head? Vertically, they are different.