from typing import Tuple


def process_go_mapping_line(line: str, prefix: str) -> Tuple[str, Tuple[str, str]]:
    """Process a GO mapping line."""
    line1 = line[len(f'{prefix}:'):]
    line2, go_id = line1.rsplit(';', 1)
    go_id = go_id.strip()[len('GO:'):]
    try:
        line3, go_name = line2.rsplit('>', 1)
    except ValueError:
        print(line)
        print('go', go_id)
        raise

    go_name = go_name.strip()[len('GO:'):]
    interpro_id, _interpro_name = line3.split(' ', 1)
    interpro_id = interpro_id.strip()
    return interpro_id, (go_id, go_name)