Look carefully, if that side were 5 then the side AB should be 4, not \(\sqrt{5}\). How you should solve this:
Divide ABCD in half diagonally. We have two triangles now. We apply the pythagorean theorem to triangle ABC. Then AC is \(\sqrt{30}\). Now we know that for triangle ACD, that AC is \(\sqrt{30}\) and DC is 4. Apply the pythagoren theorem again to find that AD is \(\sqrt{14}\).
We know angles A and C are right angles=90 degrees. However, we don't know that angles B and D are 90 degrees. They could very well be 89 and 91 degrees!
Therefore, it is prudent to extend the diagonal from B to D. Now, we can use Pythagoras's Theorem on triangle BCD. BD^2 =5^2 + 4^2 =41 and BD =Sqrt(41)
Again, we can use Pythagoras's Theorem on triangle BAD. Sqrt(41)^2 - sqrt(5)^2 =AD^2. AD^2 =41 - 5 =36.
AD = 6