I’ll insert a single terminal 1 into rule_2 so that A2 can produce the final “2 1” needed at the end of A1’s expansion.

Updated production rules:
rule_2: A2 -> 2 1