In order to catch up with homework, Xiaojun was not careful when doing a subtraction problem and copied the wrong number. Copy the 8 in the subtrahend's place into 3, and copy the 1 in the subtrahend's place into 7. The calculated difference is 289. What is the correct result?
小军为赶作业，在做一道减法题时，不细心，抄错数字．把被减数十位上的8抄成了3，减数个位上的1抄成了7，这样算出的差是289，正确的结果是多少？
<gadget id="calculator">7 - 1</gadget>
<output>6</output>

<gadget id="calculator">50 + 6</gadget>
<output>56</output>

<gadget id="calculator">289 + 56</gadget>
<output>345</output>

<result>345</result>