def split_pair_insertion_rules(rule: str) -> tuple[str, str]:
    """Split pair insertion rule of the form 'XY -> Z' and return in the form 'XY', 'XZ'."""

    mapping = rule.split(" -> ")

    return mapping[0], mapping[0][0] + mapping[1]