Hey I need help on this questions

All help is appreciated

A man is rowing upstream (both the man and stream move at constant rates). As he passes under a bridge, he accidentally drops his hat in the water, but doesn’t realize it until he has rowed for 10 more minutes. He then turns around and rows downstream, retrieving his hat 1 mile beyond the bridge. How fast is the stream flowing?

thanks