You cut one rectangular sheet of paper into two pieces with a single straight line segment. You may then rotate and flip each piece freely.
Given the three side lengths of two triangles, decide whether the two pieces can be exactly those triangles. In other words, decide whether some rectangle exists such that one straight cut leaves two pieces matching the two given triangles. The side lengths of the rectangle do not have to be integers.