$ X(\omega ) = \delta(\omega ) + \delta(\omega - 5) + \delta(\omega - 5)\, $
$ x(t) = \int_{-\infty}^{\infty}X(\omega )e^{j\omega t}d\omega\, $
$ = \frac{1}{2\pi}\int_{-\infty}^{\infty}\delta(\omega )e^{j\omega t}d\omega + \frac{1}{2\pi}\int_{-\infty}^{\infty}\delta(\omega - 5)e^{j\omega t}d\omega + \frac{1}{2\pi}\int_{-\infty}^{\infty}\delta(\omega + 5)e^{j\omega t}d\omega\, $
$ = \frac{1}{2\pi}*1 + \frac{1}{2\pi}*e^{5jt} + \frac{1}{2\pi}*e^{-5jt}\, $