A Venn diagram is the simplest way to visualize it, but you can do this problem through careful counting.
There are 40 people. That is the big box in soroban's Venn diagram
4 have no siblings, which means that 36 do have siblings.
The two circles represent the 36 with siblings, but outside the circles are those without siblings. You can see that soroban has filled in 4 for that part of the rectangle.
Now let's think about the 36 that have siblings. 27 have older siblings, and 20 have younger siblings.
But 20 + 27 = 47 > 36. What happened?
We counted those with at least one older sibling and at least one younger sibling twice, once in the group with older siblings and once in the group with younger siblings. We need to break our analysis down more finely.
47 - 36 = 11. There were 11 we counted twice. You still with me?
So there are 11 who have both older and younger siblings.
So of the 27 who have older siblings, 11 also have younger siblings, and 16 have ONLY older siblings. In soroban's diagram, those with
older siblings are in the circle to the left and are divided into those without younger siblings in the left portion of the left circle and those with both older and younger siblings in the right portion of the left circle.
Of the 20 who have younger siblings, 11 also have older siblings and 9 have ONLY younger siblings. In soroban's diagram, those with
younger siblings are in the circle to the right and are divided into those without older siblings in the right portion of the right circle and those with both older and younger siblings in the left portion of the right circle.
Notice that the 11 with both older and younger siblings is in BOTH circles.
So
\(\displaystyle \ \ 4 = number\ without\ siblings.\)
\(\displaystyle 16 = number\ with\ only\ older\ siblings.\)
\(\displaystyle 11 = number\ with\ older\ and\ younger\ siblings.\)
\(\displaystyle \ \ 9 = number\ with\ only\ younger\ siblings.\)
\(\displaystyle 40 = total\ number.\)
\(\displaystyle 16 = number\ with\ only\ older\ siblings.\)
\(\displaystyle 11 = number\ with\ older\ and\ younger\ siblings.\)
\(\displaystyle 27 = number\ with\ older\ siblings.\)
\(\displaystyle \ \ 9 = number\ with\ only\ younger\ siblings.\)
\(\displaystyle 11 = number\ with\ older\ and\ younger\ siblings.\)
\(\displaystyle 20 = number\ with\ younger\ siblings.\)
Soroban's Venn diagram makes the whole logic visual. The 11 are in both circles.
Does this help?