With $A=B=1$, the feedback path that determines the oscillation contains one NOT gate and the OR and AND gates, i.e. an odd number of inversions (one) around the loop, so the circuit behaves like a ring oscillator.
Loop delay $T_{\ell}=\underbrace{5}_{\text{NOT}}+\underbrace{10}_{\text{OR}}+\underbrace{10}_{\text{AND}}=25\text{ ns}$.
The oscillation period is twice the loop delay, $T=2T_{\ell}=50\text{ ns}$, hence the frequency
\[
f=\frac{1}{T}=\frac{1}{50\text{ ns}}=20\ \text{MHz}.
\]
Therefore, \fbox{20 MHz}.