Solve for m n+7m=d