The ratio of the number of people in the fifth grade to the sixth grade is 5:7. It is known that there are 86 more students in the sixth grade than in the fifth grade. How many people are there in the two grades?
五年级与六年级的人数的比是5：7，已知六年级比五年级多86人．两个年级一共有多少人？
<gadget id="calculator">7 - 5</gadget>
<output>2</output>

<gadget id="calculator">86 / 2</gadget>
<output>43</output>

<gadget id="calculator">5 * 43</gadget>
<output>215</output>

<gadget id="calculator">7 * 43</gadget>
<output>301</output>

<gadget id="calculator">215 + 301</gadget>
<output>516</output>

<result>516</result>