23 students went to the school store, 17 bought pencils,12 bought paper, how many purchased both?

17 + 12 = 29

29 - 23 = ?