The legs of a right triangle measure 3x 8. A cube has edge lengths

and 15. If the hypotenuse measures of 6 inches. What is the
3x+3, what is the value of x?