Tormented Souls Guide: How To Find The Pipe Caps And Solve The Gas Puzzle. Completing this puzzle leads to the game’s ending area.

Source: N4G PC Tormented Souls: How To Solve The Gas Puzzle