General course. Ozonolysis of the tetrasubstituted ring-fusion alkene opens both rings into one ten-membered ring with two ketones. Each ketone has a CH(CHX3) neighbour. The more stable (more substituted) enolate forms at that carbon and attacks the other ketone, giving a fused β-hydroxy ketone. The former CH(CHX3) carbon becomes a fusion carbon bearing CHX3; the attacked carbonyl becomes the other fusion carbon, bearing OH.
(P) Each ketone has its CH(CHX3) on opposite sides (3 carbons between one pair, 3 between the other). Bond formation closes a 5-ring and a 7-ring. The C=O stays in the 7-ring next to the CHX3 fusion carbon, and the other CHX3 is on the 7-ring next to the OH carbon → 2.
(Q) From the 7/5 system, the new bond closes two 6-rings. The C=O and the other CHX3 end up in the same ring, next to the CHX3 and OH fusion carbons respectively → 1.
(R) Both CHX3 groups were on the 7-ring. The new bond again gives two 6-rings, but now the C=O is in one ring and the second CHX3 is in the other, next to the OH carbon → 5.
(S) Both CHX3 groups were on one 6-ring. The new bond closes a 5-ring (with the second CHX3, next to the OH carbon) and a 7-ring (with the C=O, next to the CHX3 fusion carbon) → 3.
P→2, Q→1, R→5, S→3.