Adding $2$ absolute values together: $|x+2| + |x-3| =5.$ I came across a very basic absolute value question
$|x+2| + |x-3| =5.$
Initially, I thought the answer was $x=-2$ and $x=3$ because I let each absolute values be either positive and negative and that's what you get.
But the correct answer was an inequality;   $-2\le x \le 3.$ 
Now, If you try subbing values in or solve it graphically, this inequality is correct.
But how am I supposed to know if the solution is to be an inequality or equality? Is there anyway to tell by looking at the expression?
Thanks,

Methodology/ Algorithm: 
You start by checking when the expressions within the absolute value signs are positive or negative. This is because according to the definition of $|f(x)| = f(x)$ when $f(x) \ge 0$ and $|f(x)| = - f(x)$ when $f(x) \lt 0$. So first differentiate when the expressions will change signs. 
Then you will arrive at a number of points where the expressions change signs. Here since you have two expressions inside absolute value signs you will have two such points. Divide the real line at these points and solve the resulting equations subject to the inequality which arises from restricting $x$ to a portion of the real line. 
For an example, here the line will be split at $x = -2$ and $x = 3$. So suppose, $-2 \le x \lt3 $ then, the resulting equation , due to the inequality is, 
$$ x + 2 - (x - 3) = 5 \iff 5 = 5  $$
This means the equality is satisfied for every $x$ in the given interval. Now check the other regions, namely $x \ge 3$ and $x \lt -2$ and solve the equation within this regions and you will find the equality is not satisfied for any $x$ in the stipulated conditions. 
