Given a 2019-sided red regular polygonal shape with side length 1, if each side also forms the side of a blue square shape located outside the red shape, what is the perimeter of the resulting redand-blue shape