When Xiao Ming calculated the addition of two numbers, he wrote 2 for the 6 in the ones digit of one addend, and 3 for the 5 in the tens digit of the other, and the resulting sum was 374. What is the correct result of adding the two numbers?
小明在计算两个数相加时，把一个加数个位上的6错写成2，把另一个加数十位上的5错写成3，所得的和是374．原来两个数相加的正确结果是多少？
<gadget id="calculator">374 + 4 + 20</gadget>
<output>398</output>

<result>398</result>