ANSWER:
1) [ 3 6 8 ] – One number is correct and well placed.
2) [ 2 7 6 ] – One number is correct but wrong placed.
3) [ 3 8 7 ] – Nothing is correct.
4) [ 4 7 1 ] – Two numbers are correct but wrong placed.
From 4) [ 4 7 1 ] we have two correct numbers in wrong position.
From 3) [3 8 7 ], number 7 doesn’t belong to our solution so we can delete from 2) and 4) the number 7 and after that we have 2) [ 2 _ 6 ] and 4) [ 4 _ 1 ]. Similar in 1) [ 3 6 8 ] we have to delete 3 and 8 and then we have 1) [ _ 6 _ ]
From 2) [ 2 _ 6 ] I know that one number is correct but wrong placed. So combining this with the new 3) [ _ 6 _ ], I delete number 2 in 2) [ 2 _ 6 ] and I have the new 2) [ _ _ 6 ].
So my new relations are:
1) [ _ 6 _ ]
2) [ _ _ 6 ]
3) [ 3 8 7 ]
4) [ 4 _ 1 ]
So my solution is made by a combination of numbers 4,6,1. Since from 4) [ 4 _ 1 ] I know that two numbers are correct but wrong placed and 4,1 are numbers from the solution, the I have the new 4) [ 1 _ 4 ]. So combining this with 1) [ _ 6 _ ], I have my solution which is [ 1 6 4 ].