There are 25 people in class 3 and 2 who subscribe to "Little Encyclopedia", 30 people who subscribe to "Youth Daily", and 8 people who subscribe to both newspapers and periodicals. How many people subscribe to newspapers and periodicals?
三2班有25人订阅《小百科》，有30人订阅《少年报》，有8人这两种报刊都订阅了，订阅报刊的共有几人？
<gadget id="calculator">30 - 8</gadget>
<output>22</output>

<gadget id="calculator">25 + 22</gadget>
<output>47</output>

<result>47</result>