Step 1: Let the total number of students be x.
Step 2: Total number of students who passed:
Find a common denominator:
Step 3: Students who failed:
We are told that the number of students who failed is 54, so:
Conclusion: The total number of students who appeared in the exam is 360.