They give you width in terms of length, so pick a variable for the length. Come up with an expression
for the width in terms of this variable, so the expression means "the length, less three". Insert the variable and the expression into the formula for the perimeter, and subsitute the perimeter value they gave you for the P in the perimeter formula. This will give you the equation you need.