Paragraph

Using the digits 2 through 8, find the number of different 5-digit numbers such that:

  1. Digits cannot be repeated and must be written in increasing order. For example, 23678 is okay, but 32678 is not.

  2. Digits can be repeated and must be written in non-decreasing order. For example, 24448 is okay, but 24484 is not.

in-context