Case 1: The latecomer joins during the second rak‘ah.
Case 2: The latecomer joins in the final tashahhud: Abu Hanifah and Abu Yusuf permit completing Jumuah, while Muhammad’s threshold is not met.
Case 3: The imam is in sujud al-sahw: Abu Hanifah and Abu Yusuf also treat this as sufficient participation.