In the morning, Betty catches 5 flies.
In the afternoon, she catches 6 more flies, but x escapes when she removes the lid.
So the total number of flies she catches is 5 + 6 - x = 11 - x.
We know that the frog eats 2 flies every day, so the frog needs 2 * 7 = 14 flies for the whole week.
To find out how many more flies Betty needs, we subtract the number of flies she already caught from the number of flies the frog needs: 14 - (11 - x) = 14 - 11 + x = 3 + x.
We are given that Betty needs 4 more flies, so we can write: 3 + x = 4.
Solving for x, we get: x = 1.
The value of x is 1.
#### 1
The answer is: 1
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Flies are Betty's frog's favorite food. Every day the frog eats 2 flies. Betty puts the flies she finds in a bottle. In the morning Betty catches 5 flies inside a bottle, and in the afternoon she catches 6 more, but when she removes the lid, x escapes.  Betty wants to gather the whole week's food for her frog. How many more flies does she need?
If we know the answer to the above question is 4, what is the value of unknown variable x?

### Answer:
