I'm getting 47 pages (141 lines) for the last test case. A couple of examples might be useful. Maybe I'm not understanding the requirements correctly.