Translating a sentence into a multi-step equation