Consider the lines \( x(3\lambda+1)+y(7\lambda+2)=17\lambda+5 \), \( \lambda \) being a parameter, all passing through a point \( P \). One of these lines (say \( L \)) is farthest from the origin. If the distance of \( L \) from the point \( (3, 6) \) is \( d \), then the value of \( d^2 \) is: