Given:
Speed of Current = 3 kmph
Distance = 12 km
Calculation:
Let the speed of boat in still water be x kmph, then
x+312+x−312=3
12[x2−33x−3+x+3]=3
x2−92x=123
8x=x2−9
x2−8x−9=0
x2−9x+x−9=0
x(x−9)+1(x−9)=0
(x−9)(x+1)=0
x=9,x=−1
Speed of Boat can't be in negative
So Speed of Boat in Still Water is 9 kmph.