@Steven598 It requires 2 separate listings, that's the only way to do it. Additionally, you could have a 3rd listing which includes both rooms if someone wanted to rent them both, so they'd have the entire apartment. You then have to link the calendars so if someone rents the entire space, the individual room listings beome blocked and vice-versa.
If the situation you want to create would involve 2 unrelated guests sharing the kitchen and bathroom and other spaces, be sure you make that really clear in your description, so people don't arrive thinking they have the entire space to themselves.