Section 19. Every city of fifty thousand inhabitants shall maintain annually an evening high school, in which shall be taught such subjects as the school committee considers expedient, if fifty or more residents, sixteen years or over, competent in the opinion of the committee to pursue high school studies, shall petition in writing for an evening high school and certify that they desire to attend.