8. Pete, Kolya, and Vasya participated in the third competition task of the "13 Element. ALchemy of the Future" contest. Kolya guessed 3 times fewer logos than Pete, and Vasya guessed 5 times fewer logos than Pete. It is known that one point was given for each correctly guessed logo. How many points did the boys score in total, if it is known that they scored less than 40 points?
a) 21

b) 23

c) 25

d) 27

e) 30
8. 23 logos. Let the number of logos guessed by Petya be denoted by $x$. Then the number of logos guessed by Kolya and Vasya are $x / 3$ and $x / 5$ respectively. The total number of logos guessed by the three boys is $x + x / 3 + x / 5 = 23 \cdot x / 15$. Since the numbers 23 and 15 are coprime, and the number of guessed logos must be an integer, $x$ must be divisible by 15. If $x=30$ or more, the total number of guessed logos will exceed 40, which contradicts the condition. Therefore, $x=15$ and the boys together guessed 23 logos.