If you would like to write an equation to describe the following situation, you can do this like this:
4 apples in the morning ... 4
x ... the number of bananas Tommy eats
2 bananas for every banana that Tommy eats ... 2 * x
y ... the total number of pieces of fruit the monkey eats
The equation would be as follows: y = 4 + 2 * x.