Sarah goes up a hill and then down again the same way. On the way up she averages $2$ miles per hour. On the way down she averages $4$ miles per hour. What is Sarah's average speed in miles per hour for the whole journey? Give an exact answer.