The correct option is C There are 30 caves in total, of which 5 are temple halls.
The Ajanta caves were discovered accidentally by a British cavalry soldier, John Smith, in 1819, whilst on a hunting trip in this area. The Ajanta caves are a total of 30 caves divided into two sections, Chaityas and Viharas. The caves are popular for Buddhist art and sculptures, not for the paintings of stone age.