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:
Mahadewa (Assembly constituency)
Table title:
17th Vidhan Sabha: 2017 General Elections
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 class="highlighted"  colspan=1 rowspan=1 > BJP </td><td class="highlighted"  colspan=1 rowspan=1 > Ravi Kumar Sonkar </td><td colspan=1 rowspan=1 > 82,429 </td><td colspan=1 rowspan=1 > 41.82 </td><td colspan=1 rowspan=1 > +35.86 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td class="highlighted"  colspan=1 rowspan=1 > BSP </td><td class="highlighted"  colspan=1 rowspan=1 > Doodhram </td><td colspan=1 rowspan=1 > 56,545 </td><td colspan=1 rowspan=1 > 28.69 </td><td colspan=1 rowspan=1 > 6.54 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > SP </td><td colspan=1 rowspan=1 > Ram Karan Arya </td><td colspan=1 rowspan=1 > 47,914 </td><td colspan=1 rowspan=1 > 24.31 </td><td colspan=1 rowspan=1 > 21.53 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > NISHAD </td><td colspan=1 rowspan=1 > Govardhan </td><td colspan=1 rowspan=1 > 5,639 </td><td colspan=1 rowspan=1 > 2.86 </td><td colspan=1 rowspan=1 > +2.86 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > NOTA </td><td colspan=1 rowspan=1 > None Of The Above </td><td colspan=1 rowspan=1 > 2,231 </td><td colspan=1 rowspan=1 > 1.13 </td><td colspan=1 rowspan=1 > +1.13 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Remainder 5 candidates </td><td colspan=1 rowspan=1 > 4,559 </td><td colspan=1 rowspan=1 > 2.29 </td><td colspan=1 rowspan=1 > N/A </td></tr>
<tr> <th class="highlighted"  colspan=3 rowspan=1 > Majority </th><td class="highlighted"  colspan=1 rowspan=1 > 25,884 </td><td colspan=1 rowspan=1 > 12.99 </td><td colspan=1 rowspan=1 > +2.38 </td></tr>
<tr> <th colspan=3 rowspan=1 > Turnout </th><td colspan=1 rowspan=1 > 1,99,317 </td><td colspan=1 rowspan=1 > 58.42 </td><td colspan=1 rowspan=1 > +1.58 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=2 rowspan=1 > BJP gain from SP </td><th colspan=1 rowspan=1 > Swing </th><td colspan=1 rowspan=1 > +8.54 </td><td colspan=1 rowspan=1 >  </td></tr>
</table>
Question:
When did Ravi Kumar Sonkar win the Mahadewa seat and who did he defeat for it?
Answer:
Currently the Mahadewa seat belongs to Bharatiya Janta Party candidate Ravi Kumar Sonkar, who won in the Assembly election of 2017 Elections, defeating Bahujan Samaj Party candidate Doodhram by a margin of 25,884 votes.