Here’s one minimal way (4 insertions) to allow the derivation:

Updated production rules:
rule_7: A5 -> 4 3
rule_22: A10 -> 9 A6 A11 7
rule_25: A12 -> 11 A6 A13
rule_29: A14 -> A6 5 A17