When are first and final sittings in a four-rakah prayer?

Second Rakah, Sitting, Tashahhud and Taslim