I want to sum one \'y\' variable when \'x\' has the same value but in a different object, im using the function reduce in order to achieve it but when i check the console it out