Chang currently has $42 in savings. He had been saving $7 each week. Yesterday he spent $77 of the savings. For how many weeks had he been saving?