Ram and Shyam take a vacation at their grandparents' house. During the vacation, they do any activity together. They either played tennis in the evening or practiced Yoga in the morning, ensuring that they do not undertake both the activities on any single day.
There were some days when they did nothing. Out of the days that they stayed at their grandparents' house, they involved in one of the two activities on 22 days.
However, their grandmother while sending an end of vacation report to their parents stated that they did not do anything on 24 mornings and they did nothing on 12 evenings.
How long was their vacation?