Answer:
$29
Explanation:
To find the cost of the toys when Peter bought 8 of them, we can substitute the value of x = 8 into the given function: y = 3x + 5
Plugging in x = 8:
y = 3(8) + 5
y = 24 + 5
y = 29
Therefore, when Peter bought 8 toys, the cost of the toys is $29.