Solve for m d=n+8m