2 green beans
Explanation:
Let the number of beans Tom ate on thursday be
.
Let
be the difference between the number of beans he eats on a day and its previous day.
It is given that he eats 7 more beans every day than the previous day.
So,

So the number of beans he eats is

This is a arithmetic progression because the difference between any two terms in the series is constant.
There are seven days between thursday and following wednesday both inclusive.
Let
be the number of terms in arithmetic progression.
Sum of first n terms in arithmetic progression is

Since it is given that he ate 161 in total.


substituting
and
,

So,he ate 2 beans on thursday.