Tim spent half of his my allowance going to the movies. He washed the family car and earned 6 dollars. What was his weekly allowance if he ended with 17 dollars?​