Explanation:
I recommend using Desmos to quickly graph things (it's much faster than doing it yourself, I use it often. You can graph points and everything).
The picture ends up looking like the attachment I have below.
This is now a simple subtraction.
A is at 2 on the x-axis and B is at 5.
5-2=3
Answer:
3 units