Mr. Gomez rode to work averaging 45 miles per hour. He averaged 55 miles per hour on the trip home from work. If he spent a total of 6 hours driving to and from work, how many miles is his work from his home?