Solve for d (3d)/8=6r+1