Text and images on Flex and grid layout

I am working with images and text on flex and grid layout. How can I can make sure that the images and text are of equal size (dimension) when on the left and right side of the grid and flex layout with little spacing or no space in-between them.

When I was going through those challenges, theses two resources helped me a alot.
A Complete Guide to Flexbox | CSS-Tricks
A Complete Guide to Grid | CSS-Tricks

Thanks, that was helpful.