Mary has twice as many pencils as she has pens. Tom borrows a pen. Now, Mary has ten less pens than pencils. How many pencils does Mary does?