The corner points of the feasible region determined by the system of linear constraints are (0,10),(5,5),(25,20) and (0,30). Let Z=px+qy, where p,q>0. Condition on p and q so that the maximum of Z occurs at both the points (25,20) and (0,30) is _______.