This question was asked in Example 15
Formula of ap

Mayank Sharma's image