Find N pairs of matching numbers