3. (8 points) Two ropes of the same length, the first one is evenly cut into 4 segments, the second one is evenly cut into 6 segments. It is known that the length of each segment from the first rope differs from the length of each segment from the second rope by 2 meters. Therefore, the total length of the original two ropes is ( ) meters.
A. 12
B. 24
C. 36
D. 48