a 24 gallon tank would probably be too small for a yellow tang, as they do like to swim about a lot and there isn't much swimming room in a 24.
Kinda like swimming in a 10 yard pool, flip turn, streamline + kick, 3 strokes, flip turn......no workout in that.