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
Since , that means
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...