I need help with 27.
Please provide an explanation.

This is an algebra problem pretending to be geometry. The perimeter is the sum of the sides. Geometry done.
3x + (2x + 1) + 2(x + 4) = 37
7x + 9 = 37
7x = 28
x = 4
Choice B