Existence of optimal shape for a system of conservation laws in a free air-porous domain