Q. Determine the number of subsets of {3, 7, 9, 11, 24} with the property that the sum of the elements in the subset is less than 28.
My approach: First I calculated the total number of subsets that is $2^\left | S \right |$ , which in this case is $2^5$=32.
Then from the total number of subsets I subtract those subsets which give sum $\geq $ 28, to get the subset whose sum $\geq $ 28 , I include 24 in each of the subsets $\left \{24, \texttt{_,_,_,_ } \right \}$ so by filling the rest of the remaining four places will give $2^4$ subsets, these $2^4$ subsets has sum $\geq $ 28, so we subtract these subsets from the total number of subsets to get the subsets that has sum $\leq $ 28 that is $2^5$- $2^4= 16$.
But in the $2^4$ subsets that we have calculated includes a subset $\left \{24, \texttt{3} \right \}$ whose sum $\leq $ 28 , so we subtract one from the $2^4$ subsets, which is $2^4-1=15$ is the number of subsets whose sum $\geq $ 28
So we get $2^5-(2^4-1)=17 $ as the answer which is the total number of subsets whose sum $\leq $ 28
Is this approach correct to solve these type of questions?