Solve for l r=l/(N+q)