Two chimneys 18 m and 13 m high stand upright in a ground. If their feet are 12 m apart,then the distance between their tops is: