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:
2005 Pengkalan Pasir by-election
Table title:
Election 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 > BN </td><td class="highlighted"  colspan=1 rowspan=1 > Hanafi Mamat </td><td class="highlighted"  colspan=1 rowspan=1 > 7,422 </td><td colspan=1 rowspan=1 > 49.07 </td><td colspan=1 rowspan=1 > 0.73 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > PAS </td><td class="highlighted"  colspan=1 rowspan=1 > Hanifa Ahmad </td><td class="highlighted"  colspan=1 rowspan=1 > 7,288 </td><td colspan=1 rowspan=1 > 48.19 </td><td colspan=1 rowspan=1 > 2.01 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Independent </td><td colspan=1 rowspan=1 > Ibrahim Ali </td><td colspan=1 rowspan=1 > 415 </td><td colspan=1 rowspan=1 > 2.74 </td><td colspan=1 rowspan=1 > N/A </td></tr>
<tr> <td colspan=3 rowspan=1 > Total valid votes </td><td colspan=1 rowspan=1 > 15,125 </td><td colspan=1 rowspan=1 > 100.00 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=3 rowspan=1 > Total rejected ballots </td><td colspan=1 rowspan=1 > 325 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=3 rowspan=1 > Unreturned ballots </td><td colspan=1 rowspan=1 > 0 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=3 rowspan=1 > Turnout </td><td colspan=1 rowspan=1 > 15,450 </td><td colspan=1 rowspan=1 > 73.00 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=3 rowspan=1 > Registered electors </td><td colspan=1 rowspan=1 > 18,411 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=3 rowspan=1 > Majority </td><td class="highlighted"  colspan=1 rowspan=1 > 134 </td><td colspan=1 rowspan=1 > 0.88 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=2 rowspan=1 > BN gain from PAS </td><td colspan=2 rowspan=1 > Swing </td><td colspan=1 rowspan=1 > ? </td></tr>
</table>
Question:
How many votes did Hanafi Mamat and Hanifa Ahmad each earn in the 2005 Pengkalan Pasir by-election, and what was Hanafi's winning margin of votes?
Answer:
Hanafi won 7,422 votes, defeating Hanifa, who polled 7,288 votes, by a margin of 134 votes.