what is the production code of the episode before season 8, with a series number less than 31, and aired on september 21, 1995?
k0506