I have a set of numbers from 0 to 9

```
numbers=Range[0,9,1]

```

I want to determine the combination of three numbers between 0 and 9. There is a correct combination through the conditions below:

**1 - There is a true number in the correct position**

[![enter image description here](https://i.stack.imgur.com/XqDWm.png)](https://i.stack.imgur.com/XqDWm.png)

```
condition1={6,8,2};
Permutations[condition1]

```

> 
> {{6,8,2},{6,2,8},{8,6,2},{8,2,6},{2,6,8},{2,8,6}}
> 
> 
> 

**2 - There is a true number, however, in the wrong position**

[![enter image description here](https://i.stack.imgur.com/OTwUk.png)](https://i.stack.imgur.com/OTwUk.png)

```
condition2={6,1,4};
Permutations[condition2]

```

> 
> {{6, 1, 4}, {6, 4, 1}, {1, 6, 4}, {1, 4, 6}, {4, 6, 1}, {4, 1, 6}}
> 
> 
> 

**3 - There are two true numbers, however, in incorrect positions**

[![enter image description here](https://i.stack.imgur.com/IPSKm.png)](https://i.stack.imgur.com/IPSKm.png)

```
condition3 = {2, 0, 6};
Permutations[condition3]

```

> 
> {{2, 0, 6}, {2, 6, 0}, {0, 2, 6}, {0, 6, 2}, {6, 2, 0}, {6, 0, 2}}
> 
> 
> 

**4 - All Fake Numbers**

[![enter image description here](https://i.stack.imgur.com/vh3yG.png)](https://i.stack.imgur.com/vh3yG.png)

```
condition4 = {7, 3, 8};
Complement[numbers, condition4]

```

> 
> {0, 1, 2, 4, 5, 6, 9}
> 
> 
> 

**5 - There is a true number, however, in the wrong position**

[![enter image description here](https://i.stack.imgur.com/k2E8x.png)](https://i.stack.imgur.com/k2E8x.png)

```
condition5 = {7, 8, 0};
Permutations[condition5]

```

> 
> {{7, 8, 0}, {7, 0, 8}, {8, 7, 0}, {8, 0, 7}, {0, 7, 8}, {0, 8, 7}}
> 
> 
> 

I tried combining these solutions, but I did not get a answer through a code. I only have the result using my logic ...

[![enter image description here](https://i.stack.imgur.com/8nJm5.png)](https://i.stack.imgur.com/8nJm5.png)