when the 2 objects meet, they share the same displacement (s), so
sbook = sball
the equation for displacement s for constant acceleration is s = u.t + 0.5*a.t2
where u is initial velocity, a is acceleration and t is time
using the ground as the reference point,
sbook = 10*t + (1/2)(-g)t2 + 12 = 10*t - (1/2)(9.81)t2 + 12
sball = 25*t + (1/2)(-g)t2 + 0 = 25*t - (1/2)(9.81)t2
let sbook = sball
10*t - (1/2)(9.81)t2 + 12 = 25*t - (1/2)(9.81)t2
10*t + 12 = 25*t
15*t = 12
t = 12/15 = 0.8 second
Both objects meet at time 0.8s
displacement of both objects = sball( t=0.8 ) = 25*( 0.8 ) - (1/2)(9.81)( 0.8 )2 = 16.86m
Height above roof = 16.86 - 12 = 4.86m