A circle goes through two adjacent vertices of a square and it is tangent to the bottom side of the square. Find the diameter of the circle X.