Using a Cap as V_th in Thevenin Equivalent Circuit With Natural Response
since it is connected for a long time, I think your teacher just assumed the capacitor was fully charged and did the equivalent circuit before and  after t=0(some people call this t0- and t0+) the switch changes positions at t=0 so it is two different circuits, all components to the left are irrelevant after t=0.