let's say both the side has $n$ houses
$S_1= 301, 303,... , (300+2n-1)$
$S_2= 302,304,..., (300+2n)$
$\sum S_2 -\sum S_1= 27$
$(302 + 304+ 306+ \dots+n )-(301 + 303+ 305 + .. +n ) =27$
$(302-301) + (304-303)+ \dots+ (300+2n-300-2n+1)=27$
$\underbrace{1+ 1+1+1+1+\dots +1}_{\text{n times}}$ = $27$
$n.1 = 27$
now from here we can see that $n$ must be $27$