If he asked you in a joking tone then that means he knows you are interested in him and you need to put the moves on him. If it wasn't in a joking tone then he is annoyed and probably likes your friend, in which case you should try to compete with your friend by spending more time with him and flirting more than she does.