For this case we have the following variables:
d: total distance
n: number of bricks
l: distance of each brick
To find the total distance of the bricks, we must make the product of the distance of each brick, by the number of bricks.
We have then:
Answer:
a general formula for the maximum total distance is:
