I am trying to maximize the utility function $u = x + y$ according to the budget constraint $x + 2y = 10$. After taking first-order conditions I get the following:
$$L = u + \lambda(10-x-2y) = 0$$
$$\frac{dL}{dx} = 1 + \lambda(-1) = 0$$
$$\frac{dL}{dy} = 1 + \lambda(-2) = 0$$
At this point, I am stuck because I get $\lambda = 0$. How would I proceed from this point? Any help would be appreciated. Thanks.

you do not use Lagrange but put x=10-2y in u=x+y , you have u=10-y for y>=0 you have a max for y=0 and x=10