In a certain class, 26 students got excellent in Chinese, 30 students got excellent in mathematics, 12 people got excellent in both language and mathematics, and another 8 people got neither language nor mathematics. How many people are there in this class?
某班在一次测验中有26人语文获优，有30人数学获优，其中语、数双优的有12人，另外还有8人语、数均未获优，这个班共有多少人．
<gadget id="calculator">30 - 12</gadget>
<output>18</output>

<gadget id="calculator">26 + 18 + 8</gadget>
<output>52</output>

<result>52</result>