The correct option is
C Speed of boat in still water
=6km/hr and speed of stream
2km/hr.
Let
Speed of the boat in still water be xkm/hr
Speed of the stream be ykm/hr
Speed of boat in downstream = (x+y)km/hr
Speed of boat in upstream = xy)km/hr
According to given problem
Time taken to cover 12km upstream =12x−yhrs
Time taken to cover 40km downstream =40x+yhrs
But, the total time taken =8hr
=12x−y+40x+yhrs=8.........(1)
Time taken to cover 16km upstream =16x−y hrs
Time taken to cover 32km downstream =32x+yhrs
Total time taken = 8hr
=16x−y+32x+yhrs=8.......(2)
Put1x−y=pand1x+y=q
hence we get equation
12p + 40q = 8....(3)
16p + 32q = 8....(4)
Furthur simplyfying the eq we get
3p + 10q = 2..........(3)
2p + 4q = 1.........(4)
Multiply eq (3) by 2 and eq (4) by 3
6p + 20q = 4...........(3)
6p + 12q = 3............(4)
subtracting eq (4) from eq(3) we get
q=18
and we get p=14
Hencep=1x−y=14andq=1x+y=18
x-y = 4..(5)
x+y= 8....(6)
Solving equation(5) and (6) we get x = 6 and y=2
Hence speed of boat in still water =6km/hr and speed of stream 2km/hr.