Transient coupled heat transfer in a rectangular medium with black surfaces