Answer
7059
Work Step by Step
First, the 8 in the ones place is less than 9, so in order to subtract we first have to regroup from the tens digit to turn 8 to 18. Then we subtract 18-9 = 9 for the ones column.
Next, since the 3 in the tens place became 2, we have to regroup again from the hundreds digit to turn 2 to 12. We subtract 12-7 = 5 for the tens column.
Next, we subtract 4-4 = 0 for the hundreds column.
The thousands column simply takes the 7.
From the 7 in the thousands place, 0 in the hundreds place, 5 in the tens place, and 9 in the ones place, we get 7059.