I know this is forbidden in Islam. But what do we do if we have janabat during periods. For ghusl, what do we do? Which ghusl do we do first?

It is haram and a very big sin to perform in the state of heidh however you have to do two ghusl once you finish off your period; ghusl e haidh and ghusl e janabah