This is the equation

$2x\_1 + 2x\_2 + x\_3 + x\_4 = 10 (x\_i \ge 0)$

when $x\_i$s have no coefficient it is easy but I don't know how to solve it when there is coefficient. Besides that I would be appreciated if you solve this problem without generating function (if it is possible).

Thanks