In the final exam (ignore missing scores), a score below 40 is a failed paper. List class, avg_score (rounded to 2) and failed_papers for classes with an average above 62 and fewer than 3 failed papers.
1 row with columns class, avg_score, failed_papers
Run your code to see the output here.