Matty Sheldrick from Hove had attempted to ligature themselves twice in A&E on the same day they were discharged from the Royal Sussex County Hospital, an inquest heard.