Mummies in the Morning by Mary Pope Osborne
Jack and Annie don't need another mummy. But that's what they get when The Magic Tree House carries them back to ancient Egypt. Trapped inside a pyramid they meet a ghost-queen. She needs them to solve a puzzle so she can rest in peace. But can Jack and Annie solve it and escape, or will they become mummies themselves?