The answers to a test in a prestigious mathematics competition have been leaked and listed for sale on e-commerce and social media platforms.