The figure is composed of a square with an equilateral triangle on top of it. If the area of the square is 25 square inches. What is the perimeter of the figure?
A) 20 inches
B) 25 inches
C) 30 inches
D) 35 inches