Optimizing a fenced area

Length of fenceLength of side aLength of side bArea of rectangle