Infamous ‘sofa problem’ that boggled mathematicians for decades may finally have a solution