Solve algebra problems for logic assignment