Răspuns:
[tex]\red{\boxed{5~223}}\xrightarrow[]{\green{+~2017~}}\boxed{7~240}\xrightarrow[]{\green{-~4231~}}\boxed{3009}\xrightarrow[]{\green{+~1978~}}\red{\boxed{4~987}}\xrightarrow[]{\green{+~5013~}}\boxed{10~000}[/tex]
7 240 - 2 017 = 5 223
7 240 - 3 009 = 4 231
3 009 + 1 978 = 4 987
10 000 - 4 987 = 5 013