A square is inscribed in a right triangle, as shown below. The legs of the triangle are 2 and 3. Find the side length of the square.
The side length of the triangle is 18/11.