Help me with the set up! (The distance/speed formulation)

1. The problem statement, all variables and given/known data
crossing a river from point A to a point B directly across point A. The river R is 1 mile wide, the swimmer swims at s=5mph and the river is flowing westbound at f=1mph. Find the optimal direction theta to swim in order to reach point B the fastest. This is an optimization problem, but I just need some pointers, as I think m basic formulation is all wrong. Thanks