Sam leaves home and drives at a constant speed to his grandparents house. On his way, he stops at a mall to buy a gift for his grandparents. Four hours after stopping at the mall, Sam has traveled 300 miles from home, and 7 hours after stopping at the mall, he has traveled 465 miles from home. How far is the mall from Sam's house?