A square poster has sides measuring 2 feet less than the sides of a square sign. If the difference between their areas is 52 square​ feet, find the lengths of the sides of the poster and the sign.