def parse_linedata(linedata: str) -> dict:
    """
    Authors: Zakaria Ismail, Yanglong Liu

    RETURNS a dict that contains
    organized information from line

    line is a str that contains text file data

    >>> parse_linedata('miss_sullivan.png batch_result.png 2 X V P')
    {"filename": "miss_sullivan.png", "save_file_as": batch_result.png", "commands": ['2', 'X', 'V', 'P']}
    """
    datalist = linedata.split()
    data = {
        "filename": datalist[0],
        "save_file_as": datalist[1],
        "commands": datalist[2:]
    }
    return data