A chef had a dozen eggs and used some in an omelette. He had 5 left. Write an equation to find the number of eggs (x) he used for the omelette. What is the number of eggs in each omelette?