Solve for d a=bc+d