I believe I am asking about pattern flags.
I am familiar with the global pattern flag 'g'
sed 's/pattern/sub/g'
And I know I can substitute the Nth occurrence of a match by using a number.
sed 's/pattern/sub/2'
But suppose I wanted to substitute the Nth AND Mth match on a line.
Example: Remove the 3rd and 5th word of the following string
Input: "one two three four five six"
Output: "one two four six"