B=velocity of boat=3km/hr ;;;; R=velocity of river=2km/hr ;;;;;;
U=upstream velocity=B-R=1km/hr ;;;;;;; D=downstream velocity=B+R=5km/hr ;;;;;;;;;
Speed=Distance/Time ;;;;;;;;;;;
Time=Distance/speed ;;;;;;;;;;
Given distance =10km
Total time= time upstream +time downstream
= 10/1 + 10/5
= 10 + 2
==== 12 hrs