= 2025
When you are told to find the smallest length possible, you perform L.C.M(Least common multiples)
For this, you divide the given lengths using the numbers that divides all through.
I have added an image to this answer. Go through it for more explanation