The road construction team built 76.7 kilometers of roads on the first day, 6.3 kilometers less than the second day, and 36.7 kilometers less than the sum of the previous two days on the third day. How many kilometers were repaired on the third day?
修路队第一天修路76.7千米，比第二天少修6.3千米，第三天比前两天修的总和少36.7千米，第三天修了多少千米？
<gadget id="calculator">76.7 - 36.7</gadget>
<output>40</output>

<gadget id="calculator">76.7 + 6.3 + 40</gadget>
<output>123</output>

<result>123</result>