The number of photos in the first batch of pages is 12 * 2 = <<12*2=24>>24 photos.
The number of photos in the second batch is 9 * 3 = <<9*3=27>>27 photos.
The total number of photos used in the newspaper is 24 + 27 = <<24+27=51>>51 photos.
#### 51