Given:
Write them position-wise:
COPY → 2 8 4 6
C → 2
O → 8
P → 4
Y → 6
APES → 7 3 2 1
A → 7
P → 3
E → 2
S → 1
Now notice something important:
Look at common numbers instead:
The number 2 appears in both codes.
In COPY, 2 corresponds to C
In APES, 2 corresponds to E
So the coding is not fixed per letter — it’s likely based on a pattern (like rearrangement or positional logic), not direct substitution.
Since the question asks: “What is the code for P?” and the only consistent value appearing across both words that could be tied through pattern logic is 2.