Dan spent half of his allowance going to the movies. He washed his family car and earned $6. What is his weekly allowance if he ended with $16? write an equation and solve.