To build a road with a length of 840 meters, 40 meters will be repaired on the first day, and the rest of the road will be completed on the second day and the third day respectively according to the ratio of 5:3. How many meters will be repaired on the second day?
修一条长840米的公路，第一天修40米，剩下的公路按比值为5：3分别在第二天和第三天正好修完，第二天要修多少米？
<gadget id="calculator">840 - 40</gadget>
<output>800</output>

<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">800 * (5/8)</gadget>
<output>500</output>

<result>500</result>