Divide 10 into two parts such that the sum of twice of one part and square of the other is a minimum.
Divide 20 into two parts such that three times the square of one part exceeds the other part by 10.