In a certain test, the number of successful candidates was three times than that of unsuccessful candidate, if there had been 16 fewer candidates and if 6 more would have been unsuccessful, the number would have been as 2 to 1. Find the number of candidates.