Answer: second option.
Explanation:
The formula that is used to calculate the perimeter of a square is:

Where s is the lenght of any side of the square.
To know the lenght of a side of this square, you need to use the formula for calculate the distance between two points:

Let's choose the points of the vertices A and B and substitute them into the formula:

Substituting into
, you get:
