Consider the number of people as 100
So the number of people on first class = 15
Number of people in second class = 35
So the balance number of people $$ 100 - \left ( 15 + 35 \right ) = 100 - 50 = 50 $$
So the percentage of A.C class travellers = 50 %