A foul-filled battle for girls’ basketball supremacy in the Prince George’s 3A/2A/1A league showed the resilience of both Gwynn Park and host Largo on Thursday night. In a game that had both coaches mixing and matching to keep their best players on the floor late, however, it was the Lions who hung for a 75-70 win.

The first half alone included 29 combined fouls — four on Largo leading scorer Alexys Long — as Largo’s 15-point lead in the first quarter was whittled to two at intermission.

Long was just one of a handful of players forced to play tentatively to stay on the court in the fourth quarter, but she did — and finished with 15 points, including a pair of free throws late to seal the victory.

“It was really nerve-wracking,” Largo guard Stephanie Guihon (12 points) said of the foul trouble. “You have to play smart . . . when you play a good team like that, coming back from halftime when we weren’t doing so good, it helps to have teammates that have your back.”

Largo improved to 9-5, 8-0.

Gwynn Park’s veteran back court steadied the Yellow Jackets (10-3, 8-1) after the team fell into the first-quarter hole. Senior guard Takayla Ellis, playing in her first game since being injured in late December, scored 17 points and Tashina Cardwell had 19.

Lions guard Amel Duggan had 21 points — 10 coming in the fourth quarter. Chance Graham had 12 points and 22 rebounds while fellow front-court player Mikayla Edgeworth played crucial interior defense.

“[Edgeworth] is one of our defensive players. She held it down for us. If it wasn’t for her, I’m not quite sure where we would’ve ended up,” said Largo Coach Ayana Ball-Ward.

The coach also singled out Duggan.

“That fourth quarter, I think she just put the team on her back and said, ‘Let’s go.’ ”

Long said all the fouls ultimately revealed the Lions’ resilience.

“I learned our team has so much potential. We can go really far. When we stick together, we’re great.”