Two straight lines have equations
y
=
p
x
+
4
and
p
y
=
q
x

7
, where
p
and
q
are constants.

The two lines meet at the point
(
3
,
1
)
.

What is the value of
q
?