We can use the distance = rate times time formula.
This formula states that if you travel at a constant rate for a certain amount of time, you will know the distance that you traveled.
We know the rate is 3 mph and she hiked for 6 hours.
distance = 3 * 6
distance = 18
So, she traveled 18 miles.