This is how i did it...
let S=
and S=
so whatever value minimises S would minimise
2S=
So if we look at all the values of x which minimises each term then the intersection of the values of x will minimise 2S and S.
looking at the graph of each term as chisigma did we see that all values between the minimum of each of the two terms are minimising values for both terms. since they are linear functions they intersect in the middle.
so the valuse minimising

are

and so on.
the intersection of
is

so these values would all minimise S.