Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
1982 Illinois gubernatorial election
Table title:
Results
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=2 rowspan=1 > Party </th><th colspan=1 rowspan=1 > Candidate </th><th colspan=1 rowspan=1 > Votes </th><th colspan=1 rowspan=1 > % </th><th colspan=1 rowspan=1 > ± </th></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Republican </td><td class="highlighted"  colspan=1 rowspan=1 > James R. Thompson (incumbent) </td><td colspan=1 rowspan=1 > 1,816,101 </td><td colspan=1 rowspan=1 > 49.44 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Democratic </td><td colspan=1 rowspan=1 > Adlai Stevenson III </td><td colspan=1 rowspan=1 > 1,811,027 </td><td colspan=1 rowspan=1 > 49.30 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Libertarian </td><td colspan=1 rowspan=1 > Bea Armstrong </td><td colspan=1 rowspan=1 > 24,417 </td><td colspan=1 rowspan=1 > 0.66 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Taxpayers </td><td colspan=1 rowspan=1 > John E. Roche </td><td colspan=1 rowspan=1 > 22,001 </td><td colspan=1 rowspan=1 > 0.60 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > N/A </td><td colspan=1 rowspan=1 > write-ins </td><td colspan=1 rowspan=1 > 161 </td><td colspan=1 rowspan=1 > 0.00 </td><td colspan=1 rowspan=1 > n-a </td></tr>
<tr> <th colspan=3 rowspan=1 > Majority </th><td class="highlighted"  colspan=1 rowspan=1 > 5,074 </td><td colspan=1 rowspan=1 > 0.14 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=3 rowspan=1 > Turnout </th><td colspan=1 rowspan=1 > 3,673,707 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=2 rowspan=1 > Republican hold </td><th colspan=1 rowspan=1 > Swing </th><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
</table>
Question:
Who won the 1982 Illinois gubernatorial election, and how many votes was the margin?
Answer:
Thompson prevailed in the 1982 Illinois gubernatorial election by a 5,074 vote margin.