How does cid make power?

Torque and horsepower?

if both have same horsepower curves but different torque curves when gear right for the track both will a have about same torque going to the tires through out the curve.