Amar went for a holiday to his friend's place. They together either went for yoga in the morning or played tennis in the evening but not both. 14 mornings and 24 evenings, they both stayed home and they both went out together for 22 days. How many days did Amar stay at his friend's place?