In triangle $ABC,$ altitudes $\overline{AD}$ and $\overline{BE}$ intersect at $H$. If $\angle BAC = 40^\circ$ and $\angle ABC = 40^\circ$, then what is $\angle AHB$?