Use the x-coordinates A and C to calculate AC without counting