Improve the grammar of this paragraph.
They presented arguments to get the custody and the layer listened them very carefully to decide they cannot have the cat.
They presented arguments to get custody, and the lawyer listened to them very carefully to decide they could not have the cat.