Hey so I'm trying to execute this bit of code, however it is going out of bounds I would assume due to it trying to execute the first loop at the index that was removed. Does anyone know a way I can execute this code without it going out of bounds?
  for (int i = myList1.Count - 1; i >= 0; i--)
    {
        for (int j = 0; j < myList2.Count - 1; j++)
        {
            if (myList2[j] != myList1[i])
            {
                myList1.RemoveAt(i);
            }
        }
    }
 
    