def clean_data(data) -> list:
    """
    Clean the data up by removing "->" and returning a list that contains
    lists that contain the starting coordinates, and the ending coordinates

    :param data: a list that represents the data for this problem
    :return: -> [[(x1, y1), (x2, y2)], ..., [(x1, y1), (x2, y2)]]
    """
    cleaned_data = list()
    for datum in data:
        cleaned_data.append([
            tuple(map(int, datum[0].split(","))),
            tuple(map(int, datum[1].split(",")))
        ])
    return cleaned_data