Dear Student.
The length of the tape that would measure the three dimensional room exactly would be the HCF of three numbers.
21=3 x 7
15=3 x 5
18= 3 x 3 x 2
So the HCF would be 3
Hence the answer is 3 m.
We hope that this answer solves your query.
Regards.