Tangent Rectangles from centroids

Hi, im new and learning to use grasshopper and need some help.

I need to reproduce the file im sending. In words, i need to make tangent rectangles from centroids. Those rectangles are inside a larger rectangle. Those centroids come from a relation of length and angle to the centroid of the larger rectangle.

Can somebody please help me?!

Screen Shot 2020-04-03 at 1.51.53 PM|396x499