Joining the Imam in the Last Rakah

Joining the Imam in the Last Rakah: What To Do?

What should I do if I join the imam in the fourth rakah of prayer? ...