There are 8 small sides that measure 3 units each; so that'd be a total of 24 units
There are 2 sides that measure 4x; so they'd equal a total of 8x
& Finally there're 2 long sides that measure (2x-1) each; equal a total of (4x-2)
Add all these up:
(24) + (8x) + (4x-2)
Your answer is:
12x-22