Finding the Middle Term of an AP