40. To build a section of a wall, on the first day, $\frac{1}{3}$ of the total length plus 2 meters was built, on the second day, $\frac{1}{2}$ of the remaining length minus 1 meter was built, and on the third day, $\frac{3}{4}$ of the remaining length plus 1 meter was built. There are still 3 meters left to be built, the total length of this section of the wall is $\qquad$ meters.
Reference answer: 48