I assume (5b²-15b)/(10b-30)=(5b(b-3))/(10(b-3))=b/2
You cannot use b=3 in the original expression as 0/0 is indeterminate.
(2m+6)/(2m²-18)=(2(m+3))/2(m+3)(m-3)=2/m-3.
You cannot use m=3 or m=-3 in the original expression,
m=3 makes the denominator 0 and m=-3 makes the expression indeterminate.