Shyam visited Ram during his brief vacation. In the mornings they both would go for yoga. In the
evenings they would play tennis. To have more fun, they indulge only in one activity per day, i.e.
either they went for yoga or played tennis each day. There were days when they were lazy and
stayed home all day long. There were 24 mornings when they did nothing, 14 evenings when they stayed at home, and a total of 22 days when they did yoga or played tennis. For how many days Shyam stayed with Ram? Choose the correct choice.
A) 32 B) 24 C) 30 D) None of these E) Cannot be determined
Explanation :   Let ,   P days : they play tennis.   Y days : they went to yoga.   T days : total duration for which Ram and Shyam were together.   =&gt; P + Y = 22.   Also, (T - Y ) = 24 &amp; (T - P) = 14.   Adding all of them,   2T = 22 + 24 + 14   =&gt; T = 30 days.   Answer : 30
<result>C</result>
Shyam visited Ram during his brief vacation. In the mornings they both would go for yoga. In the
evenings they would play tennis. To have more fun, they indulge only in one activity per day, i.e.
either they went for yoga or played tennis each day. There were days when they were lazy and
stayed home all day long. There were 24 mornings when they did nothing, 14 evenings when they stayed at home, and a total of 22 days when they did yoga or played tennis. For how many days Shyam stayed with Ram?