Hanna can paint a room in 15 hours, this means she paints 1/15 of the room in an hour. Similarly Destiny paints 1/9 of the room in an hour.
Hence they paint

together in an hour.
This means that they took

hours to paint the room together. This is the same