This question was asked in Ex 7.1, 1
Distance formula 

Pintu Bharati's image