select first merged solution, otherwise first submitted. states for solutions that have been submitted but not merged.