This question was asked in Example 1
What is formula for this example

chatrapal's image