This question was asked in Example 3

Another method

sudeesan's image