
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
On the lateral side \( CD \) of trapezoid \( ABCD \) (\( AD \parallel BC \)), a point \( M \) is marked. From vertex \( A \), a perpendicular \( AH \) is drawn to segment \( BM \). It turns out that \( AD = HD \). Find the length of segment \( AD \), given that \( BC = 16 \), \( CM = 8 \), and \( MD = 9 \).

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