\[1)\ 5\ :\frac{2}{7} = \frac{5 \cdot 7}{2} = \frac{35}{2}.\]
\[2)\ a\ :2 = \frac{35}{2}\text{\ \ \ }\]
\[a = \frac{35 \cdot 2}{2} = 35.\]
\[3)\ b\ :8 = \frac{35}{2}\text{\ \ \ }\]
\[b = \frac{35 \cdot 8}{2} = 35 \cdot 4 = 140.\]
\[Ответ:a = 35;\ \ b = 140.\]