A line segment 42 inches long is divided into 3 portions in a ratio of 1:2:4. How many inches longer is the longest portion than the shortest portion?
f. 16
g. 18
h. 20
j. 22
k. none of these