How to move a part to another CFrame using an attachment inside it as it's origin point?

I have two objects, an Attachment called Target and a Part with an Attachment inside it called AttachPoint. I need to move the Part so that the AttachPoint in it is at the CFrame of the Target. I’ve attached a diagram to illustrate my question better.

image

If AttachPoint.CFrame is the offset from Part Origin to AttachPoint, then AttachPoint.CFrame:Inverse() is the offset from AttachPoint to Part Origin. You must place Part Origin at Target.WorldCFrame * AttachPoint.CFrame:Inverse()