Jessica is measuring two line segments. The first line segment is 30 cm long. The second line segment is 500 mm long. How long are the two line segments together? (answer in cm)