Which situation can be represented by the equation y = 5x?

A.
Dexter spent x dollars on school supplies. He gave the cashier y dollars and received $5 in change.

B.
Dexter has y cars. This is 5 times x, the amount of cars his brother has.

C.
Dexter got 5 questions wrong on a test. His score is y.

D.
Dexter is y years old. He is 5 years younger than his brother.

The situation that can be represented by the equation y = 5x is option B. Dexter has y cars. This is 5 times x, the amount of cars his brother has.