Sarah roller skates for 3 hours with a constant speed of 18mph and then for another 1 hour with a constant speed of 12mph. What distance did she go?