TeX source:
\begin{align*}7p+11d=991 & \Rightarrow 7(117-d)+11d=991\\ & \Rightarrow 819-7d+11d=991\\ & \Rightarrow 819+4d=991 \\ & \Rightarrow 4d=172 \\ & \Rightarrow d=43\end{align*}