This question was asked in Ex 3.6, 1 (i) and (ii)

Formula of ex. 3.6 class 10th

Yoges Singh's image