\begin{aligned}E_{\mathrm{H_2,chem}}&=a_E m_{\mathrm{tank,empty}}+b_E\\m_{\mathrm{H_2}}&=E_{\mathrm{H_2,chem}}/\mathrm{LHV}\end{aligned}