Rebecca and Megan are shopping at store that sells jewelry, scarves, and purses. The cost of all the items at the store include tax.

Rebecca buys some scarves that cost $5 each and 2 purses that cost $12 each. The cost of Rebecca total purchase is $39. Which equation can be used to find n, the number of scarves that Rebecca buys?

A. 5+24n=39
B 5n+24=39
C (24+5)n=39
D 24*5+n=39