from typing import Tuple


def extract_parameter_name_and_type(line: str) -> Tuple[str, str]:
    """Read configuration parameter name from text"""
    # Remove default value if any
    line, *_ = line.split("=")
    line = line.strip()

    # Parameter is now the last entry of the line
    *_, type_, param_name = line.strip().split()
    # Remove the final ;
    if param_name.endswith(";"):
        param_name = param_name[:-1]

    return param_name, type_