There are five 3×1 ships hidden in the grid below, each with a different number from 1 to 5. The numbers at the sides of the square give the sum of the numbers on all the ships in that row or column. Here's a solved example: