If the distance between the foci of an ellipse is 6 and the distance between its directrices is 12, then the length of its latus rectum is