All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
If the Maghrib prayer in congregation has already started, pray with them first, then make up the missed ‘Asr prayer.
Allah knows best.