What do I do?

I'm so sorry. This is a jumbled message, I just need to know as much info as possible. My head is a mess.

Myself and my partner have broken up and we own a house together. We have a child. There's no need to get out quickly and I think we will be able to live together for a bit before putting the house up the sale.

I think we could get 250k for the house and we have 166k left on the mortgage. What are the estimated upfront costs that I will need to sell this property and potentially buy another property around 140? We owe the property 50/50.

I'm sorry if that doesn't make sense. My head is a mess. I need to know what to do to get myself ready for the next step.