A regular pentagon and an equilateral triangle have the same perimeter. The perimeter of the pentagon is 5(1/2 x +2) inches. The perimeter of the triangle is 4(x-2) inches. What is the perimeter of each figure? (show work)

A- 12 inches
B- 20 inches
C- 36 inches
D- 40 inches