The numbers $\log(a^3b^7)$, $\log(a^5b^{12})$, and $\log(a^8b^{15})$ are the first three terms of an arithmetic sequence, and the $12^\text{th}$ term of the sequence is $\log(b^n)$, where $a$ and $b$ are positive and $b\ne1$. What is $n$?
$\textbf{(A)}\ 40$ $\textbf{(B)}\ 56$ $\textbf{(C)}\ 76$ $\textbf{(D)}\ 112$ $\textbf{(E)}\ 143$