hi ! so the answers are below ...
1. we need to add both angles to find angle QST
52 + 47
= 99
2. since the angles are on a straight line, to find the angle NPM we need to subtract the given angle with 180⁰ since the total of a straight line is 180⁰ ( hope you understand )
anyways...
180 - 79
= 101
hope that helped and let me know if you have any more questions :)