Nautical flags are used to represent letters of alphabets. The flag for the letter O consists of a yellow right triangle and a red right triangle joined together along their hypotenuse to form a square. The joint hypotenuse of the two triangles is three inches longer than a side of the square. Find the length of a side of the flag. Round your answer to the nearest tenth.