Answer: Our required equation be t = x+yb.
Explanation:
Let the number of notebooks be 'x'
Let cost of each notebook be $1
Let cost of pens be $b.
Let the number of pens be y.
Let the total amount be 't'.
So, According to question, equation becomes

Hence, our required equation be t = x+yb.