Work it out with a pencil
She worked it out with a pencil.
Because they always work problems out with a pencil.
In the end, both are lucky to produce a stool.