From the figure, what is the value of x?
A square of side length 4 cm is given. The boundary of the shaded region is defined by one semi-circle on the top and two circular arcs at the bottom, each of radius 2 cm, as shown. The area of the shaded region is cm$^2$.