Have the right bicycle emergency kit for your bicycling needs and when you will need it. Build your kit. Make sure you have the tools and sizes for your bicycles, and spare inner tubes for your wheel and tire size. Perhaps you already have some of the items at home. Buying extra or spares of those tools would allow you to equip each of the bikes with the required tools and spare parts and inner tubes. Ensure you can re-inflate your tires and be equipped for multiple puncture scenarios.
Learn and practice making likely repairs ahead of needing to do so.
A minor bicycle mechanical problem does not have to spoil your outing, jeopardize your safety, or become a major crisis.