The correct choice is (b) (h2-h1)-((d2-d1)/2)
To elaborate: If O1 and O2 are the centres of the two balls used in this method and O1B is drawn parallel to one of the inclined surfaces & O2B is perpendicular to O1B. Then, O2O1B equals half the angle of V-groove and the distance between centres i.e. O1O2 is given by (h2-h1)-((d2-d1)/2).