The profit function of a firm is given by P = 4L – 10M -2ML + M2 + 2L2 where M = Machine Hours and L = Labour hours. Determine the number of Machine and labour hours needed to maximize profit and find the maximum profit.