Let the two AP's be
(a1 - d),a1,(a1 + d)
&
{a2 - (d-1)},a2,{a2 + (d-1)}
(a1 - d) + a1 + (a1 + d)=15
a1 = 5
similarly a2 = 5
now (5-d)*5*(5+d)/{5-(d-1)}5{5+(d-1)} =7/8
solve for d, you'll get d=-16,2
therefore the sets of APs are {-11,5,21}, { -12,5,22} & {3,5,7},{4,5,6}
(a1 - d),a1,(a1 + d)
&
{a2 - (d-1)},a2,{a2 + (d-1)}
(a1 - d) + a1 + (a1 + d)=15
a1 = 5
similarly a2 = 5
now (5-d)*5*(5+d)/{5-(d-1)}5{5+(d-1)} =7/8
solve for d, you'll get d=-16,2
therefore the sets of APs are {-11,5,21}, { -12,5,22} & {3,5,7},{4,5,6}