How to display certain line of file only using head or tail in 1 command?

First month learning about the Linux terminal and it has been a challenge yet fun so far. We're learning by using a gameshell. I'm trying to display a certain line ( only allowed 1 command ) from a file only using the head or tail. I'm pretty about this answer:

head -23 history.txt | tail -1

However, it is not the good answer once I complete the gash check.

Any advice will help !

Welcome on board..

We have a forum for all to do with class work etc... please post in that forum
Thread moved