In this case the 38, 40, 41, 35, second pair 36, and the 39 beers would all be pulled. You do not leave out the 35/2nd 36 (or the 38).
and if, say, the 1st pair judged the 36 first, and significantly later the 38, I'd hope they tasted them again to be sure - scores for a tasty first beer in...