This question was asked in Example 19
How that 5 will come there

Madhu Sudhana's image