Transitivity of Openness and Closedness in Subspaces