Table:
text: United States presidential election in North Carolina, 2008
By county
By county
County Obama__1 Obama__2 McCain__3 McCain__4 Total
Orange 72.6% 53712 27.4% 20226 73938
Pamlico 42.5% 2820 57.5% 3809 6629
Pasquotank 56.8% 10170 43.2% 7720 17890
Pender 42.1% 9832 57.9% 13517 23349
Perquimans 42.9% 2761 57.1% 3674 6435
Person 45.7% 8410 54.3% 10007 18417
Pitt 54.3% 39763 45.7% 33429 73192
Polk 42.3% 4394 57.7% 5986 10380
Randolph 28.6% 16280 71.4% 40644 56924
Richmond 50.7% 9586 49.3% 9316 18902
Robeson 56.9% 22315 43.1% 16883 39198
Rockingham 42.7% 16730 57.3% 22435 39165
Rowan 38.4% 23272 61.6% 37284 60556
Rutherford 34.0% 9595 66.0% 18631 28226
Sampson 45.7% 11753 54.3% 13952 25705
Scotland 57.6% 8105 42.4% 5972 14077
Stanly 31.5% 8815 68.5% 19193 28008

Question: How many votes did McCain get in the district where Obama got 50.7% of the vote for the 2008 United States presidential election in North Carolina?

Question: How did McCain get 20,226 votes in the 2008 United States presidential election in North Carolina?