NMaximize[{X1,{-1≤X2≤1,-1≤(X1/4-X2/2)≤1,-1≤(X1/2-X2/2)≤1}},{X1,X2}]