We are going to prove a bilinear inequality and apply it to a variant of the Falconer distance problem in geometric measure theory. We are then going to see that our estimate implies an improved bound on the number of occurrences of a fixed triangle in a finite point set in the plane.