Declaration and definition of variable totalAdults with calculation.