using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
var list1 = new List<int>{1,3,5,6,8};
var list2 = new List<int>{5,6,2,9};
//print the numbers that present in both list1 and list2
}