def current_filename_with_extensions(filename, extensions):
    """
    A private helper method. Returns the filename and its extensions.
    :param filename: a string, the file's name
    :param extensions: a list, the extensions
    :return: a string, a filename with extensions
    """
    filename_with_extensions = filename
    for extension in extensions:
        filename_with_extensions += "." + extension
    return filename_with_extensions