def METHOD_NAME(p: BNP2) -> BNP12:
    """
    Apply to twist to change variables from the curve `BNP2` to `BNP12`.
    """
    return BNP12(
        bnf2_to_bnf12(p.x) * (BNF12.w**2),
        bnf2_to_bnf12(p.y) * (BNF12.w**3),
    )