ANSWER:
If he performed these two prostrations before salam, you must follow him and offer them!
If the mistake he made was in the rakah you joined him in and he offered the sujood after the salam, you must offer it at the end of your own prayer.
If the mistake was in the 1st two rakah of the imam which you were not present, you don’t have to offer them after you finish your own prayer.