depends how long the down hill was...
I'll assume it's a perfectly symmetrical hill.
He rides up at 10MPH, so he takes an hour, he rides down at 30MPH, so he takes 20 minutes
so the average in time is
or if you want the average over distance, it's
I assume you want the time one, but you don't specify in the question.
does that make sense? it's speed for each section of time, weighted over the total time.
Please respond if you don't follow