probability – Bayes theorem: lie detector machine

Assuming there is a lie detector, you can find 95% of all the lies correctly and classify them as true 98% of all true statements. Now we know that only one person would be between 300. If the detector says that a person is lying, what is the probability that that person lies?

Assuming that X = {the person lies}, D = {the detector finds a lie}, then we need to know p (X | D) since p (X) = 1/300. Now I am stuck with the meaning of 95% and 98%, is p (D | X) = 0.95 * 0.98?