Filter an Array using Formula inside a Select action

Inside Power Automate flow if i have a variable of type Array that stores ID-Title, as follow:-

[
"5-Open",
"9-Closed",
"3-With"
]

Now inside a Select action, which allow me to access the ID of a collection using:-

item()?['ID']

How i can get the title of the array item using the item()?['ID']? In other words how i can filter the array using formula? Can i benefit from XPath?

Thanks

It's more of a power automate question than CommCare.

I haven't playe dmuch with this but I know that you can tell power platform that the data received is in XML. I think it's "parse XML" or something.
then you should be able to query but I am not sure about any of this

I just know that this is a power automate question