Solve for j d=jm