use ur midpoint formula first to find midpoint of pq:
u shld get x = (10p + 10q) / 2
and y = (5p^2 + 5q^2) / 2
simplify that and you'll get:
1 - x = 5(p+q)
2 - y=2.5 (p^2 + q^2)
note that p^2 + q^2 = (p+q)^2 - 2pq
from 1, p+q = x/5
so sub that into y, and u have a value for pq so sub that in too
done