A triangle has squares on its three sides as shown below. What is the value of x?
2 centimeters
6 centimeters
8 centimeters
10 centimeters
