I want an already trained model that generates questions and answers for an exam

Hello, I would like a model that allows you to automatically generate questions according to the course you want. For example, “Arithmetic: In a geometric proposition the sum of the extremes is 10, the sum of the middle terms is 8. Find the absolute value of the difference of the 2nd. consequent with the 1st. antecedent.”
From the arithmetic question posed, I would also like to receive your answer process, so that in this way I can print it.