JSFiddle - React, Tailwind, and code Playground

JavaScript

// using JavaScript 1.7+ features
P=parseInt;
L=prompt().split(',');
S=function(A)A.reduce(function(a,b)P(a)+P(b),0);
R=[i for(i in L)if(S(L.slice(0,i))==S(L.slice(P(i)+1)))];
alert(R.length>0?R:-1);

// golfed (147)
// P=parseInt;L=prompt().split(',');S=function(A)A.reduce(function(a,b)P(a)+P(b),0);R=[i for(i in L)if(S(L.slice(0,i))==S(L.slice(P(i)+1)))];alert(R.length>0?R:-1);