For a) you are asked to set up a set of simultaneous equations so that you get a function in terms of JUST the length...

If is the length and is the width, then

and .

Since , that means

.

So

.

b) I suppose you are asked to generate a list which gives you the perimeter for a number of values. Otherwise you would be expected to use Calculus...