Time = Distance/Rate; let G = rate going so that G-2 = rate returning
(7/G) + [7/(G-2)] = 3
7G - 14 + 7G = 3G(G-2) = 3G2 - 6G
3G2 - 20G + 14 = 0
The quadratic formula gives (20 ± 2321/2)/6
Take the + radical, gives G = 5.87 and return rate = 3.87
The - radical gives an extraneous root.