The sum of a number and two times another number is 24. Find the numbers if their product is a maxiumum and state the maximum. :confused:

Please explain it because i don't know how to do these kind of questions... I have a test tomorrow...plz help.. :)