Our own version of adsense

I would like that the ad that appears next to a post be relevant to the content of the post.

see here: http://www.onlinelearningexchangebase.com/times-tables-7-12/

I'd like to change the ad on the left when the post changes to be about addition.

Any suggestions as to how that can be done?