def func(text1, text2):
    #creating a list
    value = []

    #splitting the strings and populate the list
    value = text1.split() + text2.split()

    # removing duplicates from list
    value = list(set(value))

    #sorting list alphabetically.
    value.sort()

    #returning list
    return value

print(func("The Cat Sat On The Mat", "The Cat Ate The Rat"))