Answer:
Speed of current = 3
Explanation:
Let the speed of current be 'x'.
Given:
Speed of first boat in still water (s) = 15 mph
Distance traveled by the first boat (d) = 36 miles
Downstream speed =

Speed of the second boat in still water (S) = 20 mph
Distance traveled by the (D) = 34 miles
Upstream speed =

Now, as per question, time for downstream of first boat is equal to time for upstream of second boat.
So, Time taken by first boat downstream is given as:

Time taken by second boat upstream is given as:

Since, time taken is same. Therefore, equating (1) and (2), we get

Using cross multiplication, we get:

Therefore, the speed of the current is 3 mph.