In the extracurricular interest group, among the 48 students in the group, (1/3) participated in the music and dance class, (5/8) participated in the painting and calligraphy class, and 5 students did not participate in both types of activities. How many students participated in both types of activities? ?
课外兴趣小组，全组48位同学中有(1/3)参加音舞类，有(5/8)参加书画类，有5位同学两类都没有参加，有多少同学两类活动都参加了？
<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">48 * (5/8)</gadget>
<output>30</output>

<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">48 * (1/3)</gadget>
<output>16</output>

<gadget id="calculator">48 - 5</gadget>
<output>43</output>

<gadget id="calculator">16 - 43</gadget>
<output>-27</output>

<gadget id="calculator">30 + (-27)</gadget>
<output>3</output>

<result>3</result>