Solving equations by simplifying and evaluating expressions