They all told 'yes' which mean either all of them are telling truth or all of them are lying. Probability of all of them telling the truth is 8/27 and probability of all of them are lying is 1/27 which means that out of all the 27 possible cases only 9 are applicable here. Out of those 9, 8 are of telling truth, so answer would be 8/9.

It's just my guess, i don't know if it is correct.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store