Answer:
Here is the input-output table and the equation. Replace x with n and y with p. Note that 1 represents the perimeter of the first square, so 6/4 means that the perimeter will be 6/4 of the 1st perimeter and so on.
4.5m questions
5.8m answers