That scenario would work better where each of them buys jointly from the start.
In practice, a and b meet after they both own a property, they then buy the second and third in joint names, all good.
Its only if they then wanted to buy in single names, or with another partner later that...