They give us the length of side of the square which is 3-7x.
To get an expression for the perimeter that is expressed as a product we have to multiply the expression 3-7x by four since every square has four sides. This will give us an expression of 4(3-7x). We than can use the distributive property to multiply everything inside the parenthesis by 4. This will give us an expression of 12-28x.
Replace x with -4 so it would be:
f(-4)= 2(-4)=-8
-8 is your answer
For question 7 the answer is x=0.5