Here is a picture if I did not explain clearly:

Sorry, if it is a stupid question, but I am new to Inkscape and I could not find an answer in manual. Please be understanding.

and close them with "Join two selected end nodes with a path segment.", then do Path->Divide and it will give you effect you want.