To answer this item, we let n be the number of scarves that Rebecca bought because the number is unknown. The total cost would be the sum of the amount paid for n scarves and 2 purses. The equation would then be,
5n + (12)(2) = 39
Simplifying,
5n + 24 = 39
Thus, the answer is letter B.