Let and be the speed of Ram in still water and speed of stream respectively.
Therefore,
Speed of Ram while rowing downstream
Speed of Ram while rowing upstream
Now, according to the question-
Also,
Adding equation, we have
Substituting the value of in equation, we have