Did Intersection problem and righttriangle problem