The audience members sat on the edge of their seats because they wondered how the hero planned to avenge his father's death.

What is the infinitive in the sentence above?
A.
on the edge
B.
to avenge
C.
how the hero
D.
of their seats