Solve multi-step linear equations