30 trees are planted in a straight line at intervals of 5m. To water them, the gardener needs to bring water for each tree, separately from a well, which is 10m from the first tree in line with the trees. How far will he have to walk in order to water all the trees beginning with the first tree? Assume that he starts from the well.