A gold miner lives at point A, 3 miles north of the river and 5 miles upstream from the gold mine at point B, which is 2 miles north of the river. On the way to work he must stop at the river to give his burro a drink. At what point on the river should he stop in order to minimize the length of the trip?