Which phases does water go through if you use distillation to separate it from dissolved sugar?

a. from a liquid to a solid, and then to a gas


b. from a solid to a liquid, and then to a gas


c. from a liquid to a solid, and back to a liquid


d. from a liquid to a gas, and back to a liquid