[level. $B$. .

There are 1000 candies lined up. First, Vasya ate the ninth candy from the left, and then he ate every seventh candy, moving to the right. After that, Petya ate the seventh candy from the left among the remaining candies, and then he ate every ninth candy, also moving to the right. How many candies are left after this?

#
Vasya started with the ninth candy from the left, which means he ate one candy from every seven (the first one from each "seven"). Since

$992: 7$ = 141 (remainder 5), Vasya ate 142 candies. After this, 858 candies remained.

Petya started with the seventh candy from the left, which means from 852 candies he ate one candy from every nine (the first one from each "nine"). Since

$852: 9=94$ (remainder 6), Petya ate 95 candies.

Thus, 763 candies remained.

## Answer

763 candies.