What do you do if you like a boy but he doesn't know if he likes you or your best friend?

if he talks more to you then he likes your friend because guys are shy so they do not talk to the girl they like. So if the guy talks more to your friend then he likes you.