and the speed of the stream =y km/hr
Speed of motor boat upstream =(x−y)km/hr
Speed of motor boat downstream =(x+y)km/hr
Case I : Time taken by motor boat in 30km upstream =30x−yhr
Time taken by motor boat in 28km downstream =28x+yhr
∴30(x−y)+28(x+y)=7
⇒2[15(x−y)+14(x+y)]=7
⇒15x−y+14x+y=72 ___(i)
Case II : Time taken by motor boat in 21km upstream =21x−yhr
Time taken by motor boat to return 21km downstream =21x+yhr
∴21x−y+21x+y=5
⇒21[1x−y+1x+y]=5
⇒1x−y+1x+y=521 ____(ii)
15x−y+14x+y=72 [From (i)]
As equations (both) are symmetric to (x−y) and (x+y) so we can eliminate either (x−y) or (x+y)
Multiplying (ii) by 14, we get
14(x−y)+14(x+y)=7021 ___(iii)
15(x−y)+14x+y=72 [From (i)]
− − −
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯14(x−y)−15(x−y)=103−72 [Subtracting (i) from (iii)]
⇒14−15(x−y)=20−7×33×2
⇒−1(x−y)=−16 ___(iv)
⇒(x−y)=6
Now, substituting x−y=6 in (ii), we have
1(x−y)+1(x+y)=521
⇒16+1(x+y)=521
⇒1(x+y)=521−16
⇒1(x+y)=2×5−7×13×7×2
⇒1(x+y)=342
⇒1(x+y)=114
⇒x+y=14 __(v)
x−y=6 [From (iv)]
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯2x=20 [Subtracting (iv) from (v)]
⇒x=10km/hr
Now, x+y=14 [from (v)]
⇒10+y=14
⇒y=4km/hr
Hence, the speed of motorboat and stream are 10km/hr and 4km/hr respectively.