The main tricky part is "on the same order of listbox2".
If I understand correctly you want:
Random numbers added to listbox1 every tick (60x a second).
Find the numbers from listbox2 inside of listbox1 (and if you consider order, it should be possible but is hard to explain)
After all numbers are found, wait until 10 additional numbers are generated to listbox1, then stop.
Is that correct?