Sum of weighted Lebesgue spaces and nonlinear elliptic equations