give me an example of solving linear equations and inequality in one variable and explain. ​