Mike bought a soft drink for 3 dollars and 8 candy bars. He spent a total of 27 dollars. How much did each candy bar cost?