straight rule and math problems