The points A(4,7), B(p, 3), and C(7,3) are the vertices of a right triangle, right-angled at B. Find the value of p.
a) 5
b) 6
c) 7
d) 8