Answer:
17 blue and 7 red sweatshirts were sold
Explanation:
We set up a simultaneous equation and solve:
Let r represent the number of red sweatshirts and b represent blue ones.
The total sweatshirts is 24. This gives us:

Red ones cost $10.95
and blue ones cost $12.50
and the total is $289.15
This also gives the equation:

From the first equation we have:

We replace b in the second equation to get:





This means that
b=24-7=17