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.5m questions
4.5m answers