Follow the rules means that you need to read and know the rules first. Did you even bother to read the case book play that I cited, JAR?
1)
Casebook play 10.4.5SitA: Post players begin punching each other
AND PLAY IS STOPPED.
RULING:A1 and B1 are charged with flagrant fouls and are disqualified, but no free throws result from the double
PERSONAL flagrant fouls.
2)
Casebook play 10.4.5SitB: A fight breaks out between A1 and B1 during a
DEAD ball and clock-stopped situation.
RULING: A1 and B1 are charged with flagrant
TECHNICAL fouls and are disqualified.
The FED drew you a roadmap to follow with these 2 case plays. Note that both are under a section titled "ENTERING COURT DURING FIGHT". In #1 above, the fight occurred during a live ball. The result is a double flagrant PERSONAL foul. In #2 above, the fight occurred during a dead ball. The result is a double flagrant TECHNICAL foul.
Whatinthehell more do you want?