Let the length of each side of the smaller square be
. Then area of the square is
.
The length of each side of the larger square will be
.
Then the area of the square will be

As per the question the area of the larger square is four times the square of the smaller square.
Therefore





We get
, and

Considering the positive value we get

Therefore the side of the squares are
cms and
cm.