Towns and cities may recover from the estates of persons assisted in like manner as counties under RSA 166:19.