In a math contest each team is asked 50 questions. The team earns 15 points for each correct answer and loses 8 for each incorrect answer. One team finished with 566 points. How many questions id the team answer correctly?

1 answer

correct answers --- x
wrong answers ---- 50-x

15x - 8(50-x) = 566

solve for x

(I got x = 42)