Along a highway, there are electric poles on one side of the highway and telegraph poles on the other side. The electric poles are separated by 10 m and the telegraph poles are separated by 40 m. If an electric and a telegraph pole are both present at the point where the highway begins, after how much distance along the highway will they both be in front of each other again?