Which law of motion is this and why?

When you give your friend a lift on your bike, you have to pedal harder and faster to keep the same acceleration as when you were on your bike alone.