The first sequence steps by 7, so its terms are 2,9,16,23,30,…. The second steps by 5, so its terms are 3,8,13,18,23,28,….
Walk along the first list and test each entry against the second.
2,9,16,23and3,8,13,18,23
The first value they share is 23. Note that 16 and 30 belong only to the first list, and 18 only to the second.