Filtering numeric attributes

Hello there,
I have 2 numeric attributes and I would like to filter by those attributes.
I couldn’t find a way to first return results that match both attributes and then those that match one attribute or the other.
Is it possible to do it in Algolia?