Answer: If Peter bought 8 toys, the cost of the toys will be 29.
From the equation, y = 3x + 5, they have given the value of x as eight. So if we put eight in the equation and solve it, we will get the value of y. I believe there are some errors in the question as it doesn't specify that y is the cost. Also cost requires some sort of unit, which is not given in the context. I can't really tell if it is dollars or rubles or pounds etc. So I just gave it as the way it is. Since no other clues are given, this is most likely it.