Explanation:
the total costs include both uniforms
so you can add it all together or do hats and jerseys separately
18j + 20j for jerseys per player and
7h + 10h for hats per player
so you have 38j + 17h = total cost
or combine then and get
55u (uniform per player) to gett the total cost