Middle school students compete in mathematics competition