Statistics for Sturm-Liouville Boundary Value Problems and General Solutions to 2D Liouville Equations