The most efficient way of HIV transmission is through unprotected Anal sex. Then unprotected Vaginal sex.
Not every time one gets HIV even if he/she has sex with a HIV positive individual. (See image)
Also Read this about HIV transmission. For people who are interested.https://www.aidsmap.com/about-hiv/hiv-transmission