Ai For Maths Problem