how to solve a algebra problem