In the given figure, PQ is a diameter of a circle with centre O. If ∠PQR=65∘,∠SPR=40∘ and ∠PQM=50∘, find ∠QPR,∠QPM and ∠PRS