E18 indicates a time out draining.
I'm assuming it's stopped full of water.
Put the machine on spin only and see if it empties and spins.
After that you'll need to check it over.
It's very likely there is a blockage preventing the machine draining.
It can also be a faulty pump or control board but this is less likely.
It's a lot of work but try the following.
Check the drain hose where it connects to the house drains.
If onto a connection, take the hose off and check both for a blockage.
This is normally under the sink.
If ok, you'll need to manually remove the remaining water from the machine.
Put a shallow dish in front of the filter/pump cover. (Bottom front of the machine)
Slacken the cap a little to drain the water.
If there is a draining tube, use that to empty the water.
Tighten the cap to stop the water when you need to empty the container.
(If you pull the machine out and tilt it rearward, you can get a larger container in place for a while).
Once the machine is empty of water, take the cap off.
Clean out any debris in there.
Once cleaned out, take the laundry out of the machine.
With the cap off, put the machine on spin only. (If it resets).
Listen at the open filter to see if the pump is running.
(You should see the pump impellor rotating)
If the pump isn't running, let me know.
If the pump is running, refit the cap and try the machine again.
Get back to me if you need more help.
Hope this helps
Let me know how it goes