Hello!
Let me help you.
As I understand, you need to write an equation that relates
. This problem will be solved using equations. The problem states:
Nick bought t candies and divided them equally between his y friends and me. Each of us got 7 candies.
From this statement, we know that:
t: Number of candies Nick bought.
y: Number of friends.
Since I am included in this problem, the number of people involved here can be expressed as:

Since each of us got 7 candies, then it is true that:

So t (number of candies) is a function of y(number of friends).