
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given that a class selects 4 athletes from 5 male and 4 female track and field athletes to participate in the competition, where the selection must include both male and female athletes, and at least one of the male athlete A or female athlete B must be selected, calculate the number of ways to select the athletes.

Present the answer in LaTex format: \boxed{Your answer}
user