In an examination, the number of those who passed and the number of those who failed was in the ratio of 3 : 1. Had 48 more appeared, and 8 more failed the ratio of passed to failures would have been 10 : 3. How many students appeared for the examination?
160