The total cost for a tank of gas is calculated by multiplying the price per gallon by the number of gallons:
$2.56/gallon x 15 gallons = $38.40
Since you and your friend are splitting the cost evenly, you each pay half:
$38.40 / 2 = $19.20
Therefore, you and your friend each pay $19.20 for a tank of gas.