As I see this situation,
95% of the people tested tell the truth
the accuracy of the machine in this case is 85%
So, the % based on the machine accuracy is 0.95 x 0.85 = 0.8075 = 80.75%
The machine accuracy to detect lying is 99%, so the overall accuracy will be 0.8075 x 0.99 = 0.799 ≅ 79.9%