The right triangle below has the same area as a square that mattress 6 cm on each side. Based on the dimensions in the diagram, what is the value of X.

the answer is d. 12 cuz a cube is the same length in each side so the width is 6 and so is the length so 6×6 =36 so that's the area of the square and 6 ×12=72 divided by 2 (since it's a triangle) is 36 so the value of x is 12