How does the second group complete its remaining rakah?

Salat al-Khawf: Congregational Prayer and Worship under Threat