Paired records with duplicates: This example illustrates how you can join paired records from two files, both of which have…