Combine two floors to one

Hi Guys,
As you can see in the image,Floor A and Floor B are two floors I modelled in revit.

Now I wanted to combine them into one.

Can someone help me with the script.

the output should be like this


This is like a prime example of a no effort post.
I know for a fact there are multiple examples of how this could be done on this forum.
You ask for help with ‘this’ script. Where is ‘this’ script? What did you try yourself?
Did you try to make a script yourself. Did you find a script and is that script not working?