I'm reviewing my trigonometry and I stumbled on this question ...

"From the point inside the square, the distance to three corners are 4, 5, and 6 meters respectively. Find the length of the side of the square ?"

I have tried using cosine law to solve for the two angles (angle A, angle 90 - A) but didn't get any further. Any ideas ?