This question involves analyzing a word problem to solve for the unknown. The question is straightforward and involves simple multiplication.
The gallery needs 23 pictures and each of the pictures is worth $7, so by multiplying the two numbers we arrive at the total amount the gallery has to pay.
7 × 23 = 161
The correct answer is (D).