AMC 12A 2025 (Problem 21)

There is a unique ordered triple (a,k,m)(a,k,m) of nonnegative integers such that 4a+4a+k+4a+2k++4a+mk2a+2a+k+2a+2k++2a+mk=964\frac{4^a+4^{a+k}+4^{a+2k}+\cdots+4^{a+mk}}{2^a+2^{a+k}+2^{a+2k}+\cdots+2^{a+mk}}=964. What is a+k+ma+k+m?
(A)  8\text{(A)}\;8(B)  9\text{(B)}\;9(C)  10\text{(C)}\;10(D)  11\text{(D)}\;11(E)  12\text{(E)}\;12