IMO 1966 LL GDR27

We are given a circle K and a point P lying on a line g. Construct

IMO 1966 LL GDR27

Origin: GDR

Problem

We are given a circle K and a point P lying on a line g. Construct a circle that passes through P and touches K and g.