Solution:
Concept: For a convex lens, a ray parallel to the axis passes through the second focus F2. For a concave lens, a ray directed towards the first focus F1 (on the far side) emerges parallel to the axis. The focal length is the distance of a focus from the lens.
Given: Concave L1 (f = 20 cm) and convex L2 (f = 12 cm) on a common axis.
Step 1 — Find x from the convex lens L2.
The ray reaches L2 parallel to the principal axis and, after refraction, passes through P. A ray parallel to the axis passes through the second focus F2 of a convex lens, so P is the second focus of L2, and its distance from L2 is the focal length of L2:
x=12 cm
Step 2 — Find the distance L1 to P from the concave lens L1.
The ray falling on L1 is directed towards P (dashed line) and leaves L1 parallel to the axis. For a concave lens a ray directed towards its first focus F1 emerges parallel to the axis, so P is the first focus of L1:
x+y=20 cm
Step 3 — Find y.
Subtracting x from the distance L1 to P:
y=20−12=8 cm

Step 4 — Part (b): define point P for L1.
P is the first focal point (first principal focus, F1) of the concave lens L1: the point on the principal axis such that rays of light directed towards it become parallel to the principal axis after refraction through the lens.
Watch out: For the concave lens, P is on the far side of L1, so it is the FIRST focus F1 (rays aimed at it), not F2.
Therefore, (a) x = 12 cm and y = 8 cm; (b) P is the first principal focus F1 of L1.