This is the problem I need help with!

Elizabeth visits her friend Andrew and then returns home by the same route. She always walks 2km/h when going uphill, 6km/h when going downhill and 3km/h when on level ground. If her total walking time is 6 hours, then what is the total distance she walks in km?

Thanks so much for the help guys!