The figure consists of two quarter circles and a square. What is the perimeter of this figure?