Steps of construction:
(a) Draw an angle of 40∘ with the help of protractor, naming ∠AOB
(b) Draw a line PQ.
(c) Take any point M on PQ.
(d) Place the compasses at O and draw an arc to cut the rays of ∠AOB at L and N.
(e) Use the same compasses setting to draw an arc with M as centre, cutting MQ at X.
(f) Set your compasses to length LN with the same radius.
(g) Place the compasses at X and draw the arc to cut the arc drawn earlier at Y.
(h) Join MY. Thus, ∠QMY=40∘ and ∠PMY is supplementary of it