solution 3. ranks solutions from most to least likely