Case 1: earlier prostration remained unperformed; one prostration inside prayer can cover both. Case 2: the earlier prostration was completed; the later recitation generates another prostration.
The critical issue is whether the earlier obligation remained pending or had been discharged.