| 1 | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 2 | BMW 5 Series (E34) - Petrol |  |  |  |  |
| 3 | Model | Years | Engine | Power | Torque |
| 4 | 518i | 1989–1994 | M40B18 4-cyl | 83 kW (111 hp) at 5,500 rpm | 165 N⋅m (122 lb⋅ft) at 4,250 rpm |
| 5 | 518i | 1994–1996 | M43B18 4-cyl | 85 kW (114 hp) at 5,500 rpm | 168 N⋅m (124 lb⋅ft) at 3,900 rpm |
| 6 | 520i | 1988-1990 | M20B20 6-cyl | 95 kW (127 hp) at 6,000 rpm | 174 N⋅m (128 lb⋅ft) at 4,000 rpm |
| 7 | 520i | 1989-1992 | M50B20 6-cyl | 110 kW (148 hp) at 6,000 rpm | 190 N⋅m (140 lb⋅ft) at 4,700 rpm |
| 8 | 520i | 1992-1996 | M50B20TU 6-cyl | 110 kW (148 hp) at 5,900 rpm | 190 N⋅m (140 lb⋅ft) at 4,200 rpm |
| 9 | 525i | 1988-1991 | M20B25 6-cyl | 125 kW (168 hp) at 5,800 rpm | 222 N⋅m (164 lb⋅ft) at 4,300 rpm |
| 10 | 525i | 1991-1992 | M50B25 6-cyl | 141 kW (189 hp) at 6,000 rpm | 245 N⋅m (181 lb⋅ft) at 4,700 rpm |
| 11 | 525i | 1992-1996 | M50B25TU 6-cyl | 141 kW (189 hp) at 5,900 rpm | 250 N⋅m (184 lb⋅ft) at 4,200 rpm |
| 12 | 530i | 1988-1991 | M30B30 6-cyl | 138 kW (185 hp) at 5,500 rpm | 260 N⋅m (192 lb⋅ft) at 4,300 rpm |
| 13 | 530i | 1992-1996 | M60B30 V8 | 160 kW (215 hp) at 5,800 rpm | 290 N⋅m (214 lb⋅ft) at 4,500 rpm |
| 14 | 535i | 1987-1992 | M30B35 6-cyl | 155 kW (208 hp) at 5,700 rpm | 305 N⋅m (225 lb⋅ft) at 4,000 rpm |
| 15 | 540i | 1992–1996 | M60B40 V8 | 210 kW (282 hp) at 5,800 rpm | 400 N⋅m (295 lb⋅ft) at 4,500 rpm |
| 16 | M5 | 1988–1992 | S38B36 6-cyl | 232 kW (311 hp) at 6,900 rpm | 360 N⋅m (266 lb⋅ft) at 4,750 rpm |
| 17 | M5 | 1992–1996 | S38B38 6-cyl | 250 kW (335 hp) at 6,900 rpm | 400 N⋅m (295 lb⋅ft) at 4,750 rpm |

Question: In what engine type was the E34 M5 originally available and what was the power output before and after upgrades?
Answer: The E34 M5 was originally available in an S38 6-cyl engine with an output of 232 kW (311 hp) and later upgraded to produce 250 kW (335 hp).