Let one number be x then the other is x-6 and the sum of their squares is x²+x²-12x+36=38.
So 2x²-12x=2, and, dividing through by 2: x²-6x=1, completing the square: x²-6x+9=10, (x-3)²=10, x-3=√10.
Therefore, x=3+√10=6.1622 approx. The other number is 0.1622.