In the images, we see a salamander, a bivalve mollusk, a scorpion, and a toad.
The mollusk is an aquatic animal, and the scorpion is a terrestrial one.
Just the salamander and toad are amphibian and have gills while they are larva, but then have lungs when they are adults. So the correct images are the first and the last one.