Right triangle ABC has one leg of length 6, one leg of length 8, and a right angle at A. A square has one side on the hypotenuse of triangle ABC and a vertex on each of the two legs of triangle ABC. What is the length of one side of the square?