This question was asked in Example 16
Example 16 of chapter 1 in NCERT class 9 

Preeti Nagar's image