This question was asked in Example 8
How it came x-2

Akshay Achu's image