salaamualiakum wa rahmatullahe wa barakatoh If we join salat in Jamait, suppose in 3rd Rakkat, i mean i missed two rakats. when Imam complete his salat and we continue with remainings. So, my missed rakkats would be 1st n 2nd or should i consider missed rakkats as 3rd n 4

w salam agar aapne 3 rd rakat ke rukuse pehle ya ruku main shirkat ki hai tou woh aapki 1 rakat hogi or second rakat main aapko hamd wa sura silent padhna hai or imam ki 4th ke tashahhud tak shirkat karni hai than aap 3rd and 4th khud continue karenge