Tony is participating in a charity event and must collect pledges for every mile that he runs in the next 30 days. His friend pledges 9 cents per mile for the first 25 miles that he runs, and 7 cents per mile for each additional mile. Tony’s goal is to run 63 miles in the next 30 days. Assum ing he meets but does not exceed his goal, what is the total amount Tony should collect from his friend?