Read the situation: A frame opening measures five inches across and seven inches tall. One photo is five across and seven tall. Another is seven across and five tall. Both must show the people standing upright.
Your question: Which photo matches without cropping or turning the people sideways?
Think first: Compare width to width and height to height.
Answer and explanation: The first photo matches. The second has the same numbers but its width and height are reversed.
Use it again: Label width and height separately on your shopping list.