For question one, two times the sum of x and y is at most eight because x plus y is at most four. Equality requires y equal to four minus x. Substituting into the other resource constraint gives x at most one. With nonnegativity, x ranges from zero to one. Every point on that edge is feasible and attains eight, so the whole edge is optimal.
