Constructing curves over finite fields with many points by solving linear equations