Check the picture below.
there isn't any solving per se, is just a graphing of a piece-wise, notice, the solid circle on the blue line, meaning it includes 1 because x ⩽ 1 , and the hollow circle on the red line, meaning it doesn't include 1 because x > 1.