Practical Mathematics K11John's dad pays him $8 for each correct answer he gives in his math homework and fines him $2 for each incorrect answer.
Today, John received nothing after doing 50 problems.

How many problems did John answer correctly?