This function creates an array with the values exists on same key within both arrays