Teacher fighting cancer must pay for substitute teacher