I agree with the bet part and the raise part but here is the tricky question. How much do you bet to:
a) maximize your winnings when you do have all these outs (fold equity+hiting one of your outs)
b) when a villan has one of your outs i.e. AK