What do you know about protecting groups for alcohols and ketones? Reagents like TMS chloride and things for ketal formation? These reagents might allow you to selectively react things with the acid portion. There might be ways to do the transformation without protecting groups, also.
These are just hints though, you really should show more effort.