I'm confused. Can someone help me out with this problem step-by-step using the P = 2L + 2W formula?

We can't use P = 2L + 2W because the sides have different lengths.
P = a + b + c + d
a = x
b = 2x
c = 2x - 2
d = x + 5
P = x + 2x + (2x - 2) + (x + 5)
P = x + 2x + 2x - 2 + x + 5
P = 6x + 3
if x = 4:
P = 6 · 4 + 3
P = 24 + 3
P = 27