Camilla had twice as many blueberry jelly beans as cherry jelly beans. After eating 10 pieces of each kind, she now has three times as many blueberry jelly beans as cherry jelly beans. How many blueberry jelly beans did she originally have?
$\textbf{(A)}\ 10\qquad\textbf{(B)}\ 20\qquad\textbf{(C)}\ 30\qquad\textbf{(D)}\ 40\qquad\textbf{(E)}\ 50$
Denote the number of blueberry and cherry jelly beans as $b$ and $c$ respectively. Then $b = 2c$ and $b-10 = 3(c-10)$. Substituting, we have $2c-10 = 3c-30$, so $c=20$, $b=\boxed{\textbf{(D) } 40}$.