The boat travels 63 km downstream and then 63 km upstream. The total journey time is 10 hours.
Let the river flow at x km/hr.
Downstream speed =15+x km/hr
Upstream speed =15−x km/hr
Time taken downstream =15+x63 hours
Time taken upstream =15−x63 hours
Total time =10 hours
15+x63+15−x63=10
63[15+x1+15−x1]=10
63[(15+x)(15−x)15−x+15+x]=10
63[225−x230]=10
225−x21890=10
1890=10(225−x2)
1890=2250−10x2
10x2=2250−1890
10x2=360
x2=36
x=6
Therefore, the rate of flow of the river is 6 km/hr.