`x+2+tanx = pi/2`
`=> tanx = pi/2-x-2`
Now, if we draw graphs of `tanx` and `pi/2-x-2`, we find that these two graphs intersects at two points from `[0,pi]`.
Please refer to video to see the graphs.
Thus, there are two solutions for the given equation.