这间教室与那间隔着一堵墙。

English Translation

This classroom is separated from that one by a wall.

While 间隔 is a word, in the sentence 这间教室与那间隔着一堵墙 it’s being used as two separate words 间 and 隔, and not 间隔.