See information in Charge your MacBook Air or MacBook Pro - Apple Support including the following
You can also connect a USB-C or Thunderbolt display that provides power, such as the Apple Studio Display. If your display provides power to your Mac, you don’t have to connect a separate USB-C power adapter.
Your Mac charges over only one port at a time, so connecting multiple power adapters to the USB-C ports and MagSafe 3 port (if present) won't charge your Mac faster. USB-C charge cables also support different maximum wattages (W). For example, the Apple USB-C Charge Cable (1 m) supports up to 60W and the Apple USB-C Charge Cable (2 m) supports up to 100W. If you connect more than one power source, your Mac charges only from the cable and power adapter or display providing the most power.