Quantitative Combinatorial Geometry With Applications To Number Theory And Optimization