What do you do if you like a girl but her best friend likes you?

You should listen to your heart. Be careful about refusing her friend because if they are as close as you say they are you can seriously damage your chances with the girl you like. You should gently let down her friend but i would avoid telling her you like her best friend. Then you should wait a while and then tell the girl you like you like if you still feel that way