Finite Math Examples

Maximize the Equation given the Constraints w=2y*1+y*2+2y*3 , y*1+y*2+y*3=12 , 3y*1+y*2=40
I am unable to solve this problem.