Math
posted by Branson .
250 people go to an amusement park. They buy tshirts and baseball caps. Each tshirt costs $8. Each cap costs $5. They spent $1700. How many each tshirts and caps did they buy?

250 people, out of which t people bought tshirts, and (250t) bought caps.
Form the following equation:
8t+5(250t)=1700
Solve for t.