Two straight lines have equations y = px + 4 and py = qx − 7, where and are constants. The two lines meet at the point (3, 1). What is the value of ?