A triangle has squares on its three sides as shown below. What is the value of x?

Three squares having side lengths 3 cm, x cm, and 4 cm joining to form right triangle at the centre