Connecting two monitors to MacBook Pro 2017 while charging it

Solution 1:

One solution for the problem here is to use a Apple USB-C Digital AV Multiport Adapter. It is available on Apple Retail Stores and Apple Online Store for $69.00.

enter image description here

enter image description here

Product Description:

Here's a summary of the product description as obtained from the Apple Online Store web-page:

The USB-C Digital AV Multiport Adapter lets you connect your USB-C or Thunderbolt 3 (USB-C) enabled Mac to an HDMI display, while also connecting a standard USB device and a USB-C charging cable.