### Instruction: Wendy's truck has a gas tank that can hold 20 gallons. She also has a car with a gas tank that holds 12 gallons. The truck's tank is half full. The car's tank is 1/3 full. If she fills them both up completely, how many gallons does she add? Let's program in Python in the response.### Response: # define the capacity of the gas tanks
truck_tank = 20
car_tank = 12

# calculate the current amount of gas in the tanks
truck_current = truck_tank * 0.5
car_current = car_tank * (1/3)

# calculate the amount of gas she needs to add to fill the tanks
truck_fill = truck_tank - truck_current
car_fill = car_tank - car_current

# sum the amount of gas she needs to add
total_fill = truck_fill + car_fill

print(total_fill)