I gave her a ride to town.

Literal

Her town [until-まで] ride gave.

乗せてやった uses ~てやる — the casual/rough benefactive meaning 'did X for her.' 町まで marks the destination.