Use the slope formula:-
Hope everything is clear; if you need any clarification/explanation, kindly let me know, and I will comment and/or edit my answer :)
3.4m questions
4.4m answers