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:
BMW 5 Series (E39)
Table title:
Petrol engines
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Model </th><th colspan=1 rowspan=1 > Years </th><th colspan=1 rowspan=1 > Engine </th><th colspan=1 rowspan=1 > Power </th><th colspan=1 rowspan=1 > Torque </th></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=3 > 520i </td><td colspan=1 rowspan=1 > 1995–1998 </td><td colspan=1 rowspan=1 > M52B20 6-cyl </td><td colspan=1 rowspan=1 > 110 kW (148 hp) at 5,900 rpm </td><td colspan=1 rowspan=1 > 190 N⋅m (140 lb⋅ft) at 4,200 rpm </td></tr>
<tr> <td colspan=1 rowspan=1 > 1998–2000 </td><td colspan=1 rowspan=1 > M52TUB20 6-cyl </td><td colspan=1 rowspan=1 > 110 kW (148 hp) at 5,900 rpm </td><td colspan=1 rowspan=1 > 190 N⋅m (140 lb⋅ft) at 3,500 rpm </td></tr>
<tr> <td colspan=1 rowspan=1 > 2000–2003 </td><td class="highlighted"  colspan=1 rowspan=1 > M54B22 6-cyl </td><td colspan=1 rowspan=1 > 125 kW (168 hp) at 6,100 rpm </td><td colspan=1 rowspan=1 > 210 N⋅m (155 lb⋅ft) at 3,500 rpm </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=2 > 523i </td><td colspan=1 rowspan=1 > 1995–1998 </td><td colspan=1 rowspan=1 > M52B25 6-cyl </td><td colspan=1 rowspan=1 > 125 kW (168 hp) at 5,500 rpm </td><td colspan=1 rowspan=1 > 245 N⋅m (181 lb⋅ft) at 3,950 rpm </td></tr>
<tr> <td colspan=1 rowspan=1 > 1998–2000 </td><td class="highlighted"  colspan=1 rowspan=1 > M52TUB25 6-cyl </td><td colspan=1 rowspan=1 > 125 kW (168 hp) at 5,500 rpm </td><td colspan=1 rowspan=1 > 245 N⋅m (181 lb⋅ft) at 3,500 rpm </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 525i </td><td colspan=1 rowspan=1 > 2000–2003 </td><td class="highlighted"  colspan=1 rowspan=1 > M54B25 6-cyl </td><td colspan=1 rowspan=1 > 141 kW (189 hp) at 6,000 rpm </td><td colspan=1 rowspan=1 > 245 N⋅m (181 lb⋅ft) at 3,500 rpm </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=2 > 528i </td><td colspan=1 rowspan=1 > 1995–1998 </td><td colspan=1 rowspan=1 > M52B28 6-cyl </td><td colspan=1 rowspan=1 > 142 kW (190 hp) at 5,300 rpm </td><td colspan=1 rowspan=1 > 280 N⋅m (207 lb⋅ft) at 3,950 rpm </td></tr>
<tr> <td colspan=1 rowspan=1 > 1998–2001 </td><td class="highlighted"  colspan=1 rowspan=1 > M52TUB28 6-cyl </td><td colspan=1 rowspan=1 > 142 kW (190 hp) at 5,500 rpm </td><td colspan=1 rowspan=1 > 280 N⋅m (207 lb⋅ft) at 3,500 rpm </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 530i </td><td colspan=1 rowspan=1 > 2000–2003 </td><td class="highlighted"  colspan=1 rowspan=1 > M54B30 6-cyl </td><td colspan=1 rowspan=1 > 170 kW (228 hp) at 5,900 rpm </td><td colspan=1 rowspan=1 > 300 N⋅m (221 lb⋅ft) at 3,500 rpm </td></tr>
<tr> <td colspan=1 rowspan=2 > 535i </td><td colspan=1 rowspan=1 > 1996–1998 </td><td colspan=1 rowspan=1 > M62B35 V8 </td><td colspan=1 rowspan=1 > 173 kW (232 hp) at 5,700 rpm </td><td colspan=1 rowspan=1 > 320 N⋅m (236 lb⋅ft) at 3,300 rpm </td></tr>
<tr> <td colspan=1 rowspan=1 > 1998–2003 </td><td colspan=1 rowspan=1 > M62TUB35 V8 </td><td colspan=1 rowspan=1 > 180 kW (241 hp) at 5,800 rpm </td><td colspan=1 rowspan=1 > 345 N⋅m (254 lb⋅ft) at 3,800 rpm </td></tr>
<tr> <td colspan=1 rowspan=2 > 540i </td><td colspan=1 rowspan=1 > 1995–1998 </td><td colspan=1 rowspan=1 > M62B44 V8 </td><td colspan=1 rowspan=1 > 210 kW (282 hp) at 5,700 rpm </td><td colspan=1 rowspan=1 > 420 N⋅m (310 lb⋅ft) at 3,900 rpm </td></tr>
<tr> <td colspan=1 rowspan=1 > 1998–2003 </td><td colspan=1 rowspan=1 > M62TUB44 V8 </td><td colspan=1 rowspan=1 > 210 kW (282 hp) at 5,400 rpm </td><td colspan=1 rowspan=1 > 440 N⋅m (325 lb⋅ft) at 3,600 rpm </td></tr>
<tr> <td colspan=1 rowspan=1 > M5 </td><td colspan=1 rowspan=1 > 1998–2003 </td><td colspan=1 rowspan=1 > S62B50 V8 </td><td colspan=1 rowspan=1 > 294 kW (394 hp) at 6,600 rpm </td><td colspan=1 rowspan=1 > 500 N⋅m (369 lb⋅ft) at 3,800 rpm </td></tr>
</table>
Question:
What types of engines are 520i to 530i models using?
Answer:
The 520i, 525i and 530i models use M54 engines, while 523i and 528i models use M52TU engines.