Three runners Adam, Ben, and Charles all start at the same time for a 24 km race, and each of them runs at a constant speed. When Adam finishes the race, Ben is 8 km behind, and Charles is 12 km behind. When Ben finishes the race, how far behind is Charles, in km?