How to find scale factor of dilation:

A-(-1,2)
B-(2,5)

If A(-1,2) -----> B(2,5)

then
(x,y) ----> (-2x, 5y/2)