how to solve algebra?