Teacher wins state math award