Oliver was buying books about astronomy. He bought three books about the planets and seven about thebspace program . How many books did he buy total?