Hello! Is there a way to take a numeric value and aggregate it into one of two lists based on a separate MC question?

I am having students submit their height in inches and selecting their favorite core class.

Is there a way to sort the heights of students who like math and the students who like English into two separate aggregate numberlists?

I’ve tried:

numberlist(“Y_1”): when core.isSelected(1) and in1.submitted aggregate(in1.numbericValue otherwise""

numberlist(“Y_2”): when core.isSelected(2) and in1.submitted aggregate(in1.numbericValue otherwise""

but it does not work. Anyone have any ideas if this is possible and/or what I am doing wrong?

Here is the activity:

Where do I stand?