In the given figure, APB and AQO are semicircles and AO = OB. If the perimeter of the figure is 40 cm, find the area of the shaded region.