From the information given,
perimeter varies directly with side length
If two variables, a and b vary directly, then,
a = kb
where
k is the constant of proportionality
Given that
p varies directly with s, then
p = ks
We would solve for k
k = p/s
when p = 6, s = 2
k = 6/2 = 3
Thus, the constant of proportionality is 3
The equation for the relationship is
p = 3s