TeX source:
\text{Ex} = \frac{\text{X} - 7}{8} \times 5 + 0.5