Important: The perimeter of the figure is indeed a square and not just a rectangle

Extra challenge: See if you can solve without algebra or trig