let a b 1st term,d common diff., n b no :of terms
consider d odd terms of ap,it again is an ap wid
1st term = a; common diff. = 2d; no of terms = n/2
sum = 24 = n/4 [ 2a + (n/2 - 1)2d ] = n/4[ 2a+(n-2)d]....................(1)
consider d even terms of ap,it again is an ap wid
1st term = a+d; common diff. = 2d; no of terms = n/2
sum = 30 = n/4 [ 2(a+d) + (n/2 - 1)2d ] = n/4[ 2a+nd]....................(2)
last term of series = a+(n-1)d
diff. = 21/2 = a+(n-1)d - a = (n-1)d; nd = 21/2 + d..........................(3)
(2) - (1) gives 6 = (n/4)* (2d) = nd/2
12 = 21/2 + d { by (3) } ie d = 3/2
(3) implies n = (21/2 + d)/d = 8
(2) gives 2a = (30 *4 /n) - nd = 3 ie a = 3/2
hence no : of trems = 8
series is 3/2, 3, 9/2, 6, 15/2, 9, 21/2, 12