In a group of students, 15 girls left. At this time, the number of boys was twice the number of girls. After that, 45 boys left, and the remaining girls were five times the number of boys. How many boys were there in total?
一批学生，女生走了15名，这时男生是女生人数的2倍，此后，男生走了45名，余下的女生是男生人数的5倍，男生原来共有多少名？
<gadget id="calculator">5 * 15 * 2</gadget>
<output>150</output>

<gadget id="calculator">5 * 45</gadget>
<output>225</output>

<gadget id="calculator">225 - 15</gadget>
<output>210</output>

<gadget id="calculator">150 + 210</gadget>
<output>360</output>

<gadget id="calculator">5 * 2</gadget>
<output>10</output>

<gadget id="calculator">10 - 1</gadget>
<output>9</output>

<gadget id="calculator">360 / 9</gadget>
<output>40</output>

<gadget id="calculator">40 - 15</gadget>
<output>25</output>

<gadget id="calculator">25 * 2</gadget>
<output>50</output>

<result>50</result>