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 :)
5.8m questions
7.5m answers