The target condition is $n_a(w)=2n_b(w)$, so the final difference $n_a(w)-2n_b(w)$ must be $0$.
A PDA can store this signed difference on the stack.
Extra $a$s are stored as $A$ symbols.
If there is a shortage of $a$s because too many $b$s have appeared, that deficit can be stored using $B$ symbols.
At the end, the string is accepted exactly when this difference becomes $0$, meaning no unmatched surplus remains.

Answer : A