Apparent depth equation proving

1. The problem statement, all variables and given/known data
a fish at a depth d underwater.Takes the index of refraction of water as 4/3 show that when the fish is viewed at an angle of refraction θ , the apparent depth z of the fish is
z = (3d cosθ )/ √ (7 + 9 cos2 θ)