Given that the density of gasoline is 0.77g/ml
This means that for every 1 ml of gasoline, the weight is 0.77g.
There are 1,000 ml in 1 litre, thus, there are 46 x 1,000 = 46,000 ml in 46 litres of gasoline.
Since there is 0.77g of gasoline in every ml. Thus in 46,000 ml there is 0.77 x 46,000 = 35,420 grams.
Given that a gram of gasoline produces 45.0kj of energy, then 35,420 gram will produce 45 x 35,420 = 1,593,900 kj.