How to solve the puzzle after the submarine.
Portals Puzzle Solution
Well you have two paths here, if you are going for the main story objetive (the 3rd portal machine) you have to follow the red-yellow-green path.
If you instead are going to the tentacle (flippers required) you need to follow the red-yellow-blue.
Pipes Puzzle Solution
All you have to do is go first and up until you go to the second map, there you have to go up and right down left and go back to the first map, there just go left back to the tent and finally down to the thropy room.
The way to find the thropy that isnt a bomb is taking the one that isnt sparking.