A square and a triangle have equal perimeters. The square has a perimeter of 4(x + 9), and the triangle has a perimeter of 3(x + 24). Find the perimeter value. A. 180 B. 144 C. 36 D. 27