I'm with hot2trot here; I think we maximize the bonus miles if we do one transaction of 40K miles (+12K bonus miles) and 20K miles (+5K bonus miles) for 17K total bonus miles, rather than 2 separate 30K mile transactions for 16.5K total bonus miles.
Am I missing something?