Obama taught constitutional law at the University of Chicago Law School from 1992 to 2004, making it approximately 12 years of service. He was first a Senior Lecturer and later promoted to Professor. The other options (3, 5, 18 years) do not match his actual tenure duration.