The cutoff raises to $6 and you call. Both blinds fold, leaving $1 and $2 in the pot.
The cutoff bets $5. You'd pay $5 to win $20, so you need 5 / 25, or 20%. The next card gives you 19.1% and you can win more later, so you call.
The cutoff bets $18. You'd pay $18 to win $43, so you need 18 / 61, or 29.5%, and the river gives you 19.6%. You'd have to win about $31 more if you hit, and you have $171 left. You call.
You make the flush. The cutoff checks, you bet $40 and they call with ace-king.
You take the $141 pot, and you put in $69 of it: $6, $5, $18 and $40.