40% students of a college reside in hostel and the remaining reside outside. At the end of the year, 50% of the hostelers got A grade while from outside students, only 30% got A grade ain the examination. At the ed of the year, a student of the college was chosen at random and was found to have gotten A grade. What is the probability that the selected student was a hosteler?