# 7. Variant 1

In the garden, there are 26 trees - apple trees and pears. It turned out that among any 18 trees, there is at least one apple tree, and among any 10 trees, there is at least one pear. How many pears are there in the garden?
Answer: 17.

Solution: Since among 18 trees there is at least one apple tree, there are no more than 17 pears. And since among any 10 trees there is at least one pear, there are no more than 9 apple trees. There are 26 trees in total, so there are 9 apple trees and 17 pears.

## Variant 2

In the garden, there are 26 trees - apple and pear trees. It turned out that among any 18 trees, there is at least one apple tree, and among any 10 trees, there is at least one pear tree. How many apple trees are there in the garden?

Answer: 9.

## Variant 3

In the garden, there are 27 trees - apple and pear trees. It turned out that among any 19 trees, there is at least one apple tree, and among any 10 trees, there is at least one pear tree. How many pear trees are there in the garden?

Answer: 18.

## Variant 4

In the garden, there are 27 trees - apple and pear trees. It turned out that among any 18 trees, there is at least one apple tree, and among any 11 trees, there is at least one pear tree. How many apple trees are there in the garden?

Answer: 10.

## Variant 5

In the garden, there are 29 trees - apple and pear trees. It turned out that among any 19 trees, there is at least one apple tree, and among any 12 trees, there is at least one pear tree. How many apple trees are there in the garden?

Answer: 11.