Given the following data, I'd like the sum of data in column B where column A is "good".

A_________B
good______10
good______20
good______10
bad_______99
bad_______99
good______10

So in this case I'd like 50 to appear under column B.