List<int> numbers = new List<int>{5, 3, 5, 9, 7, 8, 22, 5};
int indx = numbers.FindIndex(item => item == 5);
var lst = new List<int>() { 1, 2, 3, 5, 1, 6, 5 };
var result = lst.Select((el, idx) => (el, idx))
.GroupBy(c => c.el)
.Where(g => g.Count() > 1)
.SelectMany(g => g.Select(c => c.idx).ToList())
.ToList(); // [0, 4, 3, 6]