Let's us assume the speed of the 1st boat be b, 2nd boat be s and the river's speed be r.
Suppose the distance between A and B be d.
⇒ d = 2(b + r) and d = 3(b -r)
⇒ b + r = \(\frac{d}{2}\) and b - r = \(\frac{d}{3}\)
By subtracting both equations, we get :
⇒ r = \(\frac{d}{12}\)
Given :
\(\frac{d}{s+r}+\frac{d}{s-r}=6\)
⇒ \(\frac{d}{s+\frac{d}{12}}+\frac{d}{s-\frac{d}{12}}=6\)
⇒ 2ds = \(6(s^2-\frac{d^2}{144})\)
⇒ \(144s^2-48ds-d^2=0\)
By solving the above quadratic equation, we get :
\(⇒ s=d(\frac{(48+\sqrt{48^2+4(144)})}{2\times144})\)
\(⇒s=d(\frac{1}{6}+\frac{\sqrt5}{12})\)
Therefore, the required value of \(\frac{d}{s+r}\) is as follows :
\(=\frac{d}{\frac{d}{6}+\frac{\sqrt5d}{12}+\frac{d}{12}}\)
\(=\frac{12}{3+\sqrt5}\)
\(=\frac{(12)(3-\sqrt5)}{4}\)
\(=3(3-\sqrt5)\)
Therefore, the correct option is (C) : \(3(3-\sqrt5)\).