Height of one roof is 5.97 m below the other roof
now its displacement in vertical direction is given as


solving above for time

now in the same time cat has to cover the distance between two buildings
so here we can say


solving above for speed

so speed of cat is 6.54 m/s