Slope of line
Given P(0,−4) & B(8,0)
Let M be the midpoint of P(0,−4) & B(8,0)
We know that midpoint of (x1,y1) & (x2,y2)=(x1+x22,y1+y22)
Mid point M of (0,−4) & (8,0)
=(0+82,−4+02)=(82,−42)=(4,−2)
So, the line should pass through M(4,−2) and O(0,0)
We know that slope of line passing through (x1,y1) and (x2,y2) ism=y2−y1x2−x1
Here, x1=0,y1=0 and
x2=4,y2=−2
Slope of line between points O(0,0) & M(4,−2)=m=−2−04−0=−24=−12
Hence, slope of line is −12