We have dy/dx = (4-x) dx which is a first order linear ODE
dy = (4-x) dx. Now integrating both sides we get:
y = 4x - 1/2 x^2 + C
which is the answer. Note we only wrote +c once since we can combine arbitrary constants under addition and subtraction with each other.