This video explains three scenarios:
1) The purchase of treasury stock
2) The sale of treasury stock for more than cost
3) The sale of treasury stock for less than cost
You can view and print the blank sheet to follow along with this problem here:
http://www.tlctutoringcompany.com/corporations.html