12: The perimeter condition reads 2x + 2y = 40 and allows one to get rid of y.

The function

should be maximized over the set M = [0,20] (the longest possible side is 20 if perimeter is to be 40). Use the appropriate algorithm.

Next hint
Answer