There are 50 students in class ten of five years. In the final exam, 38 students got A in Chinese, 46 got A in Mathematics, and 2 students did not get A in either Chinese or Mathematics. How many students are there who are excellent in Chinese and mathematics?
五年十班有50名同学．期末考试时有38人语文得优，46人数学得优，2名同学语文和数学都没有得优．语文和数学都得优的同学有多少名？
<gadget id="calculator">2 - 50</gadget>
<output>-48</output>

<gadget id="calculator">38 + 46 + (-48)</gadget>
<output>36</output>

<gadget id="calculator">1 - 1</gadget>
<output>0</output>

<gadget id="calculator">1 + 0</gadget>
<output>1</output>

<gadget id="calculator">36 / 1</gadget>
<output>36</output>

<result>36</result>