A firm's sales for the month total $30,000. If the ratio of cash to credit sales is 2:3, what do cash sales total?

cash=2x

credit=3x

2x+3x=30000
x = 6000