Hester goes out for an afternoon bicycle ride. She rides for one hour at five miles an hour, then three hours at four miles an hour and finally two hours at seven miles an hour. How many miles did she ride in total?