parses geometry problems