Why Airbus Built Both The A340 And A330 At The Same Time

Why Airbus Built Both The A340 And A330 At The Same Time