What is the purpose of the xylem and phloem?

The xylem transports water and nutrients from the roots to the rest of the plant.

the phloem transports sucrose (sugars) throughout the plant