How does cid make power?

In my example, both engines produced the same power, which was 75 hp/cylinder.
Torque and horsepower?