We obtain some asymptotic formulae (with power savings in their error terms) for the number of quadruples in the Cartesian product of an arbitrary set A ⊂ R and for the number of quintuplets in A × A for any subset A of the prime field F p . Also, we obtain some applications of our results to incidence problems in F p .