Mi sembra che hai molta confusione,
vuoi un somma delle due select? Perché costruisci un array prezzo? A cosa serve array data-id?