+---------+-------+ | 8 9 5 1 | R R | +---------+-------+ | 2 1 6 9 | R B | +---------+-------+ | 3 6 9 4 | R B | +---------+-------+ | 4 7 2 1 | R B | +---------+-------+ | 1 2 3 7 | R R R | +---------+-------+Each of the rows in the table given above indicates an attempt to find out the secret number. Each try has, in the column to the right, the letters R and B.
Each R indicates that this number has one digit in common with the secret number, but in a different position.
Each B indicates that this number has one digit in common with the secret number in the same position.
Determine the secret number.