is possible addition and subtraction 2 rows??

dear all,
hellos i have a new question is possible in 2 rows selected sums?
for example
i have 2 lines
columA ColumB ColumC
row1 = Example 22 bbb
row1 = Example 33 bbb

i have this cod…
var areTrabajo = areaTrabajo.getSelectedId(); <-- this code witch selected 2 rows I returned “2,1”
how is the method for sums 22 and 33?
value1 = areaTrabajoCalculos.cells(selId,1).getValue(); --> 22
value1 = areaTrabajoCalculos.cells(selId,2).getValue(); --> 33
i need the result 55

exist other method more dynamic, for don’t sums value1 + value2 …
imagine you, i have 300 registers… i need the create one iterator

var ids = mygrid.getSelectedRowId(); if (ids) { ids = ids.split(","); for (var i=0; i<ids.length; i++){ var row_id = ids[i]; do_something(); //you code is here } }