Let the equation of normal be $$ax\sec t -by\csc t=a^2-b^2$$
Let the parameters of the two normals be $t$ and $r$
Their slopes are equal $$\frac{\sec t}{\csc t}=\frac{\sec r}{\csc r}$$
$$\sin t \cos r-\cos t \sin r=0$$
$$t-r=n\pi$$ Let $n=1$
$$t-r=\pi$$ $$t=\pi +r$$
So the first equation becomes $$ax\sec r -by\csc r =b^2-a^2$$
The distance between two parallel lines is $$\frac{|a^2-b^2+b^2+a^2|}{\sqrt{ a^2\sec ^2r+b^2\csc^2 r}}$$
To minimise the denominator , differentiating wrt $r$
$$2a^2\sec^2r\tan r-2b^2\csc^2r\cot r=0$$
$$\tan ^2r=\frac ab$$
Then $$L =\frac{2a^2}{a+b}$$
The given answer is $2(a-b)$, but I am unable to find what is wrong in my computation.
Thanks for the help

Note that your distance expression is off. Given symmetry, the distance between the two parallel normals is twice the distance from origin to either line. So, continue with $$ax\sec t -by\csc t=a^2-b^2$$ to express the distance as
$$d(t)=\frac{2(a^2-b^2)}{\sqrt{ a^2\sec ^2t+b^2\csc^2 t}}\tag1$$
Set $d’(t)=0$ to get $\tan t= \pm\sqrt{\frac ba }$ and substitute into (1) to obtain the maximum distance
$$d_{max}= \frac{2(a^2-b^2)}{\sqrt{ a^2+b^2+2ab}}= 2(a-b)$$