I don't know what A, B and C are - it's just numbers. AB is the difference between A and B, but isn't the line length on that graph you've drawn, it's just the difference in height. Same for CB.
If you can explain where you've got this from, I may be able to help.