the ai learns what the answer is by testing it and making new tests until it gets it right ok starting off on ai there are 3 types ani (artificial narrow intelligence) which can do a easy task like path finding (google maps), agi (artificial general intelligence) which is human intelligence (siri or alexa etc.) and asi ( which is a artificial super intelligence which is any where from 1 point higher than average iq and twice the total sum of the worlds intelligence this is an ani which does one task