Question 1005014
You confused one of the expressions belonging to the two figures, and you made no accounting for perimeter of the square.


This should made sense now:
{{{2(2x-2)+(x+4)+(3x-1)=(2x-1)+(2x+1)+(2x+1)+(2x+1)}}}