Remark
Interesting way to teach this problem. I'll see if I can make a table that answers the question as it is presented.
Now all you need do is collect the nine terms from the table and put the like ones together if there are any.
The first eight is in the thousands place and the second eight is in the hundreds place.