I think that most questions are asking someone else to do the homework ( googling ) for them. At any rate, it seems alot of people would be happier if I didn't post at all.
It may be easier for a person to explain the use of tac
which is cat from the bottom of the file...
tac < file.txt | sed -n '1,3p' | tac