def get_x_y_coordinates_as_list(line_segments):
  """
  Returns x-coordinates and y-coordinates as separate lists.
  :param line_segments: Line segments containing x and y coordinates.
  """
  line_x_coords = []
  line_y_coords = []

  for line_seg in line_segments:
    line_x_coords += line_seg.get_endpoint_x_coordinates()
    line_y_coords += line_seg.get_endpoint_y_coordinates()

  return line_x_coords,line_y_coords