The pearl in not inside Poseidon's castle its in the pearl underwater above the cave be careful only click on it when the pearl is open
The answer to that is that you have to get the starfish in the museum go to poseidon's castle use the starfish and the go to the water and dive and you will have to find it