AI exercise solver and worksheet generator