If class A's average for the test was 60%, it means that nobody in class A failed. How can I calculate it?

first off, it's not true.

If the average was 60%, there were some above and some below. Maybe there were several who failed.

Actually, in my opinion, 60% is failing anyway...