One patent I am writing now includes more than two patents. How to write?

If the patents you want to write are A and B, A is a product that can be produced independently, and B is a part of A but also a product that can be produced independently, then A and B can be written as one patent, and B can be written as two independent claims.

If A and B don't contain each other, let's write two patents.