Word Problem!!

A school earned $5100 in ticket sales for a play. The cost per ticket was $12. Let t represent the number of tickets sold to the play. Which of the following equations could be used to determine how many tickets were sold?

A- 12=5100t

B- 12t=5100

C- t=5100-12

D- t=5100(12)