def subtract(list1,list2):
	i=0
	new_list=[]
	while i<len(list2):
		if list1[i] in list2:
			new_list.append(list1[i])
		i=i+1
	return new_list
print subtract([1,342,75,23,98],[75,23,98,12,78,10,1])

