Limit result from category based on result count from other category

Hello everyone,

I have a pretty specific question for Elasticsearch and I currently don't know how to solve this.
For example I have two categories 1: Q&A - 2: articles, and when you search for a specific term the search page results will be flooded with Q&A, this is not what we want and we want to accomplish the following:

For each three articles we want to allow 1 Q&A.
So for example when we have 18 articles in the search we want to allow 6 Q&A results.

Anyone has any idea how to do this?

As far as I know you can only have these hard limits with two searches, each filtered by one of the categories.