Solving a single variable algebra 1 problem