I have a problem with proving the below sequent in intuitionistic logic:
$$
\neg \neg A \to \neg \neg B \vdash \neg \neg (A \to B)
$$
I stuck here:

What should I put in $6th$ line? Is my approach even correct? I noticed that Generally, I have problems with proving sequents with double negation in intuitionistic logic. Is there any pattern for solving such examples?