Fast multi wave extract

I have two waves of equal length, waveA and waveB
I want to find the indices where waveA > 10 && waveB < 5.
I can do this using loops but it is slow.
Is there a fast way to do this somehow using the extract command?
So far I have not been able to think of one.
How about:

MatrixOP/O aa=greater(waveA,10)*greater(5,waveB)


A.G.
WaveMetrics, Inc.
Here is an example that uses Extract and creates a wave of indexes from waveA where the equation evaluates to true. Note that if wavea and waveb were not the same length this wouldn't work as expected.

make wavea = p
make waveb = 127-p
Extract/INDX wavea, indexes, wavea[p] > 10 && waveb[p] < 5
print indexes
  indexes[0]= {123,124,125,126,127}