Find the value of 'a' when distance between the points (3,a) and (4,1) is √10

Raju Lala's image