Optimizing k-12 education through online and blended learning