Josh had 142 pencils. He gave 31 pencils to Dorothy. How many pencils does Josh have left?