The automatic transmission is the most expensive part of the car. The trans needs to be in good health as an overhaul will exceed the car's value.
BMW's recommendation was that it NOT be serviced. As a result most were not and lots of them are at death's door 16 years on.
The engines are also of concern, research "nikasil" for answers.
Great cars when in form, endless moneypits when not.