Imagine starting with the number $5238$.
$5000+200+30+8$
$5\times1000 + 2\times100 + 3\times10 + 8\times1$