A square is dilated by a scale factor of 2. Explain how the scale factor would affect the area and perimeter of the square.