Original: The Pallavas had the more difficult existence of the two as they had to fight on two fronts—against the Pandyas as wells as the Chalukyas.
Simplified: The Pallavas had the more difficult existence of the two as they had to fight on two fronts - against the Pandyas as wells as the Chalukyas.