Tom spent half of his allowance going to the movies. He washed the family car and earned eight dollars. What is his weekly allowance if he ended up with twelve dollars?