A point on the ceiling of a room is 12ft. from each of the vertices of a triangle on the floor whose legs are 6ft. A and 8ft. respectively. find the length of the ceiling.