6. A three-digit number and two two-digit numbers are written on the board. The sum of the numbers that contain a seven in their notation is 208. The sum of the numbers that contain a three in their notation is 76. Find the sum of all three numbers.
Problem 795
Official solution
Answer: 247.
Solution. Let the three-digit number be , the two-digit numbers be and . Among the numbers whose sum is 76, there cannot be a three-digit number. The sum cannot consist of a single number either, because otherwise that number would be 76, but it does not contain a three. Therefore, 76 is the sum of two two-digit numbers, each of which contains a three:
Among the numbers whose sum is 208, there must be a three-digit number (since the sum of two-digit numbers is only 76). It cannot be the only one, because the number 208 does not contain a seven. Therefore, there is at least one two-digit number in this sum - but not both at the same time (otherwise the three-digit number would be , but it does not contain a seven).
Without loss of generality, let's assume that the two-digit number in this sum is . Then
and both of these numbers contain a seven.
Therefore, the number contains both a three and a seven, i.e., or .
If , then - not a two-digit number. Therefore, , .
The sum of all the numbers is .