You may have multiplied the base of the square by one of its sides instead of finding the sum of the lengths of the sides.