Hi Maria,
I am not sure....
But you can use my idea if it is help full,
We know the two table entries as fix per page(18 and 12).
So we can use the describe table lines in initialization and the empty lines to the respected tables which are less for the page fix entries(18 and 12).
Ex1:
1st table has 20 entries(2 pages) and 2nd table has 10 entries.
To continue the 2nd table we have to add 3 empty entries to 2nd table.
then the entries will be 13 entries(2pages)
Ex2:
1st table has 10 entries and 2nd table has 30 entries(3 pages).
To continue the next pages we have to 27 entries add 1st table.
then the entries will be 37 entries(3pages)
Finally you can use your own logic depends upon the above idea.
Thanks,
Sivanadh.