During the "May 1st" holiday, 5 members of Xiaoming's family visited Qingdao, 6 visited Tai'an, and 3 of them visited both Qingdao and Tai'an. Do you know how many members there are in their family?
"五一"假期，小明家有5人到青岛游玩，有6人到泰安游玩，其中有3人既到过青岛又到过泰安，你知道他们一家共有几人？
<gadget id="calculator">6 - 3</gadget>
<output>3</output>

<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<result>8</result>