12. (3 points) Teachers Zhang, Li, and Wang come from Beijing, Shanghai, and Shenzhen respectively, and teach Mathematics, Chinese, and English. Based on the information provided below, it can be deduced that Teacher Zhang is from $\qquad$ , and teaches $\qquad$ ; Teacher Wang is from $\qquad$ , and teaches $\qquad$ .
(1) Teacher Zhang is not from Beijing, Teacher Li is not from Shanghai;
(2) The teacher from Beijing does not teach English;
(3) The teacher from Shanghai teaches Mathematics;
(4) Teacher Li does not teach Chinese.
【Answer】Solution: Since Teacher Li is not from Shanghai, and the teacher from Shanghai teaches mathematics, Teacher Li can only teach Chinese or English. Since Teacher Li does not teach Chinese, Teacher Li must teach English. Teacher Li is not from Shanghai, and the teacher from Beijing does not teach English, so Teacher Li must be from Shenzhen;

Teacher Zhang is not from Beijing, so he can only be from Shanghai, teaching mathematics;
Teacher Wang is from Beijing, teaching Chinese.
Therefore, the answers are: Shanghai, Mathematics, Beijing, Chinese.