# 7. Variant 1

In the garden, there are 46 trees - apple trees and pears. It turned out that among any 28 trees, there is at least one apple tree, and among any 20 trees, there is at least one pear. How many pears are there in the garden?
Answer: 27.

Solution: Since among 28 trees there is at least one apple tree, the number of pears is no more than 27. Since among any 20 trees there is at least one pear, the number of apple trees is no more than 19. There are 46 trees in total, so there are 19 apple trees and 27 pears.

## Variant 2

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

Answer: 19.

## Variant 3

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

Answer: 28.

## Variant 4

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

Answer: 20.

## Variant 5

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

Answer: 21.