This is a straightforward heat-balance problem: whatever heat is made inside the room has to leave through the ventilation air, since we are told nothing is stored and there are no other losses.
Start by writing down what is known, with units attached so nothing gets lost in the arithmetic:
Every second, the ventilation system swaps out some of the warm indoor air for cooler outdoor air. Each cubic metre of that swapped air carries away heat equal to $1300\ \text{J/m}^3\text{-}^{\circ}\text{C}$ times the temperature drop it goes through, which is $22 - 18 = 4^{\circ}\text{C}$.
So each cubic metre of ventilated air removes:
\[ 1300 \times 4 = 5200\ \text{J per cubic metre} \]Since the room must shed exactly $5000$ joules every second to stay at steady state, the volume of air that needs to pass through per second is the required heat loss divided by the heat removed per cubic metre:
\[ V = \frac{5000\ \text{J/s}}{5200\ \text{J/m}^3} = 0.9615\ \text{m}^3\text{/s} \]Rounded to two decimal places, this gives $V = 0.96\ \text{m}^3\text{/s}$.
So the estimated rate of ventilation is 0.96 cubic metres per second.