the quick way i use to id a e32/34 m30 tranny is look at the switch next to the shifter, A M on 90 and up E S M on 89 and older usa cars, you need a tranny from a e32 735 e34 535 with the same switch. another option would be do the a-clutch repair which should fix it if it's just slipping, i did a page on it, it's in the engine and drivetrain section of this site. a 525 tranny won't really work, too much crap to screw with
all america wants is cold beer warm cat and a place to take a poop with a door on it