If anyone could help me with this I'd be really grateful.

A is the point of coordinates (4,6)

B is the point with coordinates (d,21)

The gradient of the line AB is 3

Work out the value of D

Please provide a explanation