Someone is measuring two line segments, the first one is 49 centimeters long. The second one is 540 millimeters long. How long in centimeters are the two line segments?