Solve for q.
Aq= 4p-s/4
Bq= s-4p
Cq= s-4p/p
Dq= s-4p/4
Aq= 4p-s/4
Bq= s-4p
Cq= s-4p/p
Dq= s-4p/4