Brenda drove to her friend's house and back. On the trip there she drove 30 kmh and on the return trip she went 20 km/h. How long did the trip there take if the return trip took three hours?