The Generalized Sylvester's And Orchard Problems Via Discriminantal arrangement