How does cid make power?

Surely 2 horses will pull a carriage faster than 1.

LOL, to an extent. Two horses will get there quicker, and pull more, but typically not faster ;)

But this is what the "horsepower" figure is derived from: work. Speed is just the result of work being done to mass.