The ratio of the lengths of 3 squares of different sizes is 2:4:7. If the length of the biggest
square is 10 cm longer than the smallest square, find the perimeter of the smallest square.