Number of Ways to Paint Sheets
Each two-colour painting is one split point plus one colour order; count the splits that respect both limits.
Each two-colour painting is one split point plus one colour order; count the splits that respect both limits.