from typing import Tuple


def process_arguments(arguments: str) -> Tuple[str, str, int]:
    """
    Process the arguments given to !weather, dividing them into state, location and future
    Uses default of QLD, Brisbane and 0 if not given
    """
    args = arguments.split(" ") if arguments else []
    if args and args[-1].lstrip('-+').isnumeric():
        future = int(args.pop())
    else:
        future = 0

    # get location
    if args:
        if args[0].upper() in ["NSW", "ACT", "NT", "QLD", "SA", "TAS", "VIC", "WA"]:
            state = args.pop(0).upper()
        else:
            state = "QLD"
        location = " ".join(args)
    else:
        state = "QLD"
        location = "Brisbane"

    return state, location, future