The discussion is about entity recognition and corefrence resolution

Input = " I need 3 chairs in each class and there are 10 classes, so i need 30 chairs"
output = “30 chairs, 10 classes”

i have used the concept of corefrence resolution and entity recognition but i am unable to simplify the statement enough so that the input can become " i need 30 chairs and 10 classrooms" or similar linguistic approach which would help me to use entity recognition and solve this problem statement.