Define the problem's composition:
Make sure the sum of all Frequencies equals the number of lines selected above.