Call the rate in still water vs;
upstream you have: vs-v=6/4
downstram you have: vs+v=6/3
where v is the rate with which the river flows.
rearranging:
vs-v=3/2
vs+v=2
from the second you have v=2-vs substitute into the first:
vs-2+vs=3/2
2vs=7/2
vs=7 mi/hr