The solve turns the exoplanetary sample into 4 sticks of 3 and compares the match pattern to each separately.
It checks if two atoms are the same by putting both on quint and trying every combination of 2 atoms to try and make quint.
If they are not the same then quint is made and everything is disposed.
If they are the same then one atom gets stored in a counter.
If the counter reaches 3 for a match pattern then the gold and salt get moved to invert which gets outputted and which gets disposed.