If you graph both of these lines you will see that they 3x+5 slopes up and 10 - 2x slopes down with them intersecting at the point (1,8) making a big x on your graph.

So the function value is maximum at x=1.

So the function value is maximum at x=1.