Important to note that Google gives each competing ad an “Ad Rank” that is computed by multiplying its Maximum Bid an advertiser is willing to pay with the Quality Score that Google assigns your ad/keyword/landing page. The higher your ad rank, the higher your ad’s position on the SERP.
The price you pay (p1) is directly related to the maximum bid (b2) of the advertiser below your ad – though the Quality Score of each ad (Q1 and Q2, respectively) is also taken into consideration.
Since b2Q2 is essentially the Ad Rank of the ad below your ad, the price you pay is equal to the Ad Rank of the ad below yours divided by your Quality Score.