Tom bought a soft drink for four dollars and seven candy bars. He spent a total of thirty - nine dollars how much did each candy bar cost