Solve for b