If he missed something at the beginning of Taraweeh, how can he make it up?

If I enter the mosque late for ‘Isha’ prayer and I missed the ‘Isha’ prayer in congregation and I pray it on my own, and I am late in joining the Taraweeh prayers because of doing ‘Isha’, and I miss two rak’ahs of Taraweeh, how should I do these two rak’ahs? Alone or what?.

Shaykh Ibn ‘Uthaymeen (may Allaah have mercy on him) was asked: If I join the people when they are praying Taraweeh and I have missed part of it, should I make up what I have missed after Witr or what should I do? 

He replied: Do not make up what you have missed after Witr, rather if you want to make up what you have missed, then pray two rak’ahs when the imam prays Witr, then offer the prayers you missed, then pray Witr. Here there is an issue to which attention should be drawn: If you arrive when the imam is praying Taraweeh and you did not pray ‘Isha’ yet, what should you do?  Should you pray ‘Isha’ on your own or join the imam in Taraweeh with the intention of praying ‘Isha’? 

The answer is that you should join the imam in Taraweeh with the intention of praying ‘Isha’. When the imam says salaam from Taraweeh, then stand up and make up the rest of ‘Isha’. Imam Ahmad (may Allaah have mercy on him) mentioned the exact same issue, and this was also the view favoured by Shaykh al-Islam Ibn Taymiyah, and this is the correct view, because the correct view is that it is permissible to offer an obligatory prayer in congregation behind an imam who is offering a naafil prayer, based on the evidence of the hadeeth of Mu’aadh ibn Jabal (may Allaah be pleased with him) who said that he used to pray ‘Isha’ with the Prophet (peace and blessings of Allaah be upon him), then he would go back to his people and lead them in offering that prayer – it was naafil for him and obligatory for them. End quote from al-Liqa’ al-Shahri.