Answer
The square is 8 by 8, and the rectangle is 16 by 4.
Work Step by Step
First, we equate the two areas:
$s^2 = lw$
Since $l=2s$ and $ w = s-4 $, we obtain:
$s^2 = 2s(s-4) \\ 0 = s^2 - 8s \\ 0 = s(s-8)$
Since s cannot equal 0, we obtain:
$s=8 \\ l =2s=2(8) =16 \\ w = s-4 =8-4=4$