Míša has five candies. Vojta has fewer candies than Míša. Vendelín has as many candies as Míša and Vojta together. All three of them together have seven times more candies than Vojta.

How many candies does Vendelín have?

(L. Hozová)

Hint. How few and how many candies can they have together at minimum and maximum?
Vojta has fewer candies than Míša, so he can have

$$
0,1,2,3 \text {, or } 4
$$

candies. Vendelín has five more candies than Vojta, so he can have

$$
5,6,7,8, \text { or } 9
$$

candies. All three together have twice as many as Vendelín, so they can have

$$
10,12,14,16 \text {, or } 18
$$

candies.

Among these numbers, only 14 is a multiple of seven, $14=7 \cdot 2$. Therefore, Vojta has 2 candies and Vendelín has $2+5=7$ candies.