How does the folding bed work?

Can you answer this question?