A rope is 120 m long and cut into three pieces. If the second piece is three times as long as the third piece, what is the length of the longest piece?
A) 60 m
B) 40 m
C) 30 m
D) 20 m