Legs Eleven

Stage: 3 Challenge Level: Challenge Level:2 Challenge Level:2

The number $5374$ is $5000+300+70+4$
What does this become once the $5$ has moved to the back of the queue?
How many 5s, 3s, 7s and 4s are there when you combine the two numbers?

Published April 1998,October 2008,February 2010.