The irregular nesting problem involving triangles and rectangles