Midpoint (x,y) of (x1,y1) and (x2,y2) is
x = (x1 + x2)/2
y = (y1 + y2)/2
here (x1,y1) is A(4,8) and midpoint (x,y) is (-3,1) and we want to find B(x2,y2)
substituting those values in the above equations and solving for B(x2,y2):
-3 = (4 + x2)/2
-6 = 4 + x2
-10 = x2
1 = (8 + y2)/2
2 = 8 + y2
-6 = y2
B(x2,y2) = B(-10,-6)