1)
when a,x,y,z,b are in AP
x+y+z = 15
3y= 15 ( 2y=x+z)
y=5
now a+b/2 = y
a+b = 2*5= 10
now if a,x,y,z,b are in H.P
1/x+1/y+1/z= 5/3
3/y = 5/3 ( since 2/y = 1/x+1/z)
y= 9/5
again
1/a+1/b = 2/y = 10/9
a+b/ab = 10/9
ab = 9 ( since a+b = 10)
solving for a and b
a= 9,1
b= 1,9