If the points A(1, 1), B(2, 10), C(4, b), and D(a, -8) are the vertices of a parallelogram ABCD, find the values of a and b using the slope formula.