Apaches - and the British Mustang I & II were pretty fast, that was their role, they couldn't do very much else since the ailerons didn't work very well, but they could keep up a high speed down very low. One of the few aircraft that could fly those complex Northern European day-intruder missions planned out by the RAF and survive.
The Apache was not a Mustang I, the British got few, if any, A-36s.
If you start out with an 8% drag deficit between the P-36 and the P-40, that right there is about 25 mph potentially. And the inline engine clearly had a lot more room for rapid improvement in terms of cleaning up obstructions and streamlining, when you compare a P-36 hawk to an early 1941 P-40 to a mid 1942 one you can see the difference. I suspect the drag difference between a P-36 and a P-40L is a bit more than 8%.
You don't have suspect, it was more than 8%, as has already been mentioned it was 22% between the P-36A (much like the Mohawk in your first photo and the early P-40 like in the 2nd photo. But that difference had nothing to do with the wings or from the firewall back and everything to do with the engine installation. There may be some confusion as to amount of exhaust thrust was counted or not counted in each plane. But
nobodies radial engine installations were very good in 1938-39-40. A lot of work was being done and the Germans were first with a significant change with the fw 190. P & W got the difference down to 8% with that P-40 test hack. From then on many radials got much closer to the liquid cooled engines in terms of drag.
The pace, the speed , and the intensity of the war just increased very rapidly, particularly in Europe. The aircraft that were fighting the Germans were a whole different beast and had to maintain a much higher combat speed to survive. The P-36 was competitive in the Battle of France in 1940, but by the battle of Britain a few months later (partly due to the nature of the fighting at higher altitude) it was no longer considered viable for the battlefield, even sufficiently to be sent to North Africa and the Middle East. The shift to the inline engine enabled a series of other changes that kept the new P-40 Tomahawk and Kittyhawk design 3 years after the original Hawk had already hit that wall.
Even sticking a V-12 on the nose of the P-36 wasn't enough to keep it competitive in Europe as the available V-12 didn't have enough power
at altitude for the weight of the P-40.
Please note that in the fall of 1940 the DB 601 didn't offer much more power, it just had a much lighter airplane to haul around, you could have swapped engines and gotten pretty much the same results.
Curtiss was in the business of building airplanes. The more planes you could build to the same basic design the more profit you could make. Many designs were adapted to take different engines to suit the customers preference.
XP-31 as originally built and as modified.
note full span leading edge slats.
Curtiss could also go the other way, A-8 Shrike
A-12 Shrike
Some earlier Curtiss biplane fighters were sometimes fitted with radials for overseas customers instead of the water cooled V-12 engines.
This was done by a lot more companies than Curtiss. Hawker in England built both V-12 powered Fury biplanes and radial engined versions as well as Hart light bombers and variants with both types of engine.
Boeing tried the B-9 bomber with both types of engine.Changing engines doesn't change the design of the airframe.