gelen id sayısına göre for döngüsüne alıp toplam diye bir değişkende toplasan sorun çözülür gibi.