The major thick battery earth should be bolted down onto a bell housing bolt, make sure this is very good as if it isn't it can search for earth through the ecu earth points on the plenum cover and fry the ecu.
The other much smaller earth goes onto the little bracket on the edge of the battery tray.
tabetha