First set up the equation that states how much money is in his account. We'll let w be the number of weeks that he was on his summer trip in Mexico. f(w) = 1700 - 175w. This is how much money is in his account w weeks after starting his trip.
Then if he was left with $125 in his account, we simply set the above equation equal to 125.
1700 - 175w = 125
175w = 1575
w = 1575/175 = 9
Thus, Humberto was on his summer trip for 9 weeks.