Keith bought a soft drink for three dollars and eight candy bars. He spent a total of twenty-seven dollars. How much did each candy bar cost?