Help me and show your work <3

Answer:
25 on A
24 on B
Step-by-step explanation:
So for team A, x can be the total amount.
[tex]\frac{1}{5} x=5[/tex]
x = 25
25 players on team A.
For team B, let y be the total amount.
[tex]\frac{1}{8}x =3[/tex]
x = 24
24 players on team B.