Is it okay to apply for a patent on the basis of existing products or patents?

no problem

But you should make sure that your patent is novel, creative and practical.

You can only apply for the part you changed as a claim.

Even if you are authorized to obtain a patent, you must obtain permission or transfer from the patentee of product A before you can implement your patent. Unless patent a expires!

Because your patent authorization is based on the A product patent!

You can contact me directly if you need it again!

I can help you 1