It's a basic mathematics problem. Notably, Euclidian geometry and trigonometry. When was the last time those disciplines where taught in schools?