Using scissors or a straightedge and blade, cut a 50mm square piece from the filter foam. You can borrow the separator piece for a moment as a template.
The foam then fits into the remaining void in the top case piece.