The lengths (长度) of two rivers are in the ratio 12:7. The length of the longer one is 42km. Find the length of the shorter one.