From a right triangle ABCABCABC with legs AC=3AC = 3AC=3 and CB=7CB = 7CB=7, a square with one vertex at CCC of the largest possible area is to be cut out. What is the side length of this square?