How to divide sarchs to get percentage metric

I created two searchs:
Search 1 - TEXT.X* and Search 2 - TEXT.Y*

How should I combine agregations in metric or create new search to get something like math operation (TEXT.X* / TEXT.Y*)*100:

I saved new search: TEXT.X* OR TEXT.Y* and tried to use metric with filter and a lot of different combination of agregation but it does not works.