Mahesh visited his cousin Akash during the summer vacation. In the mornings, they both would go for swimming. In the evenings, they would play tennis. They would engage in at most one activity per day, i.e. either they went swimming or played tennis each day. There were days when they took rest and stayed home all day long. There were 32 mornings when they did nothing, 18 evenings when they stayed at home, and a total of 28 days when they swam or played tennis. What duration of the summer vacation did Mahesh stay with Akash?
Choose the correct choice:
A) 46 days
B) 36 days
C) 39 days
D) 58 days
E) None
Explanation :   Let, the duration of Mahesh's vacation be 'n' days.   Acording to the question, he was free on 32 mornings and on 18 evenings and on total 28 days they either went for swimming or tennis together.   Thus, they were together on (n−32) mornings and (n−18) evenings.   =&gt;(n−32)+(n−18)=28.   =&gt;x=39.   Hence, the require number of days is 39.   Answer : 39 days
<result>C</result>
Mahesh visited his cousin Akash during the summer vacation. In the mornings, they both would go for swimming. In the evenings, they would play tennis. They would engage in at most one activity per day, i.e. either they went swimming or played tennis each day. There were days when they took rest and stayed home all day long. There were 32 mornings when they did nothing, 18 evenings when they stayed at home, and a total of 28 days when they swam or played tennis. What duration of the summer vacation did Mahesh stay with Akash?