Comparing on both sides, we get
$n =9$
Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.