Original: It lies 25 km south of Ludwigshafen and Mannheim.
Simplified: It lies  south of Ludwigshafen and Mannheim.