How to use Pivot Point for Translations

Suppose if i want to do these translations.

  1. Translate the rectangle position by x = 10 units.

  2. Rotate the rectangle by 35 degree with the center point at the center of the rectangle.

  3. Translate the rectangle position by x = 10 units.

  4. change the x position of the center point by 10 units( rectangle should not be affected by the change in the center point position)

  5. Now rotate the rectangle using the new center point.

If someone could please guide me how do we use Center point in transformations. How do i build by ModelView Matrix if i am using a center Point.