We know that
• Side lengths of the square are equal to 6x-2.
,
•
Remember that the perimeter is defined as the sum of all side, in this case we have four sides, so we just have to sum the given expression four times.

Therefore, the perimeter is 24x-8.