using System;
using System.Linq;
using System.Collections.Generic;
public class Program
{
public static void Main()
int[] arr1 = { 1, 2, 4, 3, 3 };
int[] arr2 = { 1, 3, 4, 3 };
var result = arr1.Where(x => arr2.Contains(x)).ToArray();
Console.WriteLine(string.Join("\n", result));
}