contestada

Hats cost $4 each while scarves cost $3 each. John buys 5 items (all hats and scarves) and spends a total of $17. How many hats did he buy?